vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
45.83k stars 8.03k forks source link

TSX attrs overriding isn't working #6204

Closed jd-solanki closed 2 years ago

jd-solanki commented 2 years ago

Vue version

3.2.37

Link to minimal reproduction

https://codesandbox.io/s/unruffled-goodall-zz9tux

Steps to reproduce

  1. Write something in the input
  2. View the console

What is expected?

It should only emit a single event which is inside the component

What is actually happening?

it is also handling event provided via attrs. (Isn't overriding @input of App.vue)

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    Memory: 2.07 GB / 7.71 GB
    Container: Yes
    Shell: 0.12.1 - /home/jd/.xonsh/.venv/bin/xonsh
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
  Browsers:
    Chrome: 103.0.5060.53

Any additional comments?

None

jd-solanki commented 2 years ago

https://v3-migration.vuejs.org/breaking-changes/v-bind.html#_3-x-syntax

LinusBorg commented 2 years ago

https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html