We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.1
https://codesandbox.io/s/vue3-event-bug-pc5ug?file=/src/App.vue
follow the link
no error like vue2, see
https://codesandbox.io/s/vue2-event-kvjlb?file=/src/App.vue:0-476
error happened
The text was updated successfully, but these errors were encountered:
You can use an empty string as a workaround
Sorry, something went wrong.
The compiler doesn't actually account for a dynamic non-null value, but I think we still support this, so it's rather a bug.
_createVNode("button", { ["on" + _capitalize($options.ev)]: _cache[2] || (_cache[2] = (...args) => ($options.handleClick(...args)))
The compiler should skip adding that prop to the vNode if !$options.ev
!$options.ev
feat(compile-core): handle falsy dynamic args for v-on and v-bind (#2393
052a621
) fix #2388
Successfully merging a pull request may close this issue.
Version
3.0.1
Reproduction link
https://codesandbox.io/s/vue3-event-bug-pc5ug?file=/src/App.vue
Steps to reproduce
follow the link
What is expected?
no error like vue2, see
https://codesandbox.io/s/vue2-event-kvjlb?file=/src/App.vue:0-476
What is actually happening?
error happened
The text was updated successfully, but these errors were encountered: