Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when using attribute starting with on #949

Closed
jacekkarczmarczyk opened this issue Apr 10, 2020 · 0 comments
Closed

TypeError when using attribute starting with on #949

jacekkarczmarczyk opened this issue Apr 10, 2020 · 0 comments

Comments

@jacekkarczmarczyk
Copy link
Contributor

jacekkarczmarczyk commented Apr 10, 2020

Version

3.0.0-alpha.12

Reproduction link

https://codepen.io/jkarczm/pen/YzyPwYJ?editors=1010

Steps to reproduce

  1. Open codepen - nothing renders, there's an error in console
  2. Change "onwards" to something else that doesn't start with "on" - "OK" is rendered

What is expected?

should render "OK" with "onwards" prop

What is actually happening?

TypeError

In case if this is expected and attribute names starting with "on" are reserved it should be clearly stated in docs

Edit: probably this line https://github.com/vuejs/vue-next/blob/master/packages/runtime-dom/src/patchProp.ts#L29

@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant