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.0-alpha.1
(None)
Attempt to compile this template:
<button @click="foo(); bar()">Click</button>
It should compile without any errors or warnings and when the button is clicked it should call the foo and bar functions sequentially.
foo
bar
The generated code is invalid.
The following template fragment works in 2.x:
The click event handler gets compiled into something like this:
click
click: $event => { foo(); bar() }
But in 3.0.0-alpha.1 the compiled code is this:
click: _cache[0] || (_cache[0] = $event => (foo(); bar()))
which is invalid JS syntax.
It can be fixed on the user's end by:
The text was updated successfully, but these errors were encountered:
Also I want to mention that the issue helper website doesn't let you pick any version for vue-next which blocks creating any issues using the form.
vue-next
Sorry, something went wrong.
fix(compiler-core): fix vOn compiled code (vuejs#572)
ee2cc15
@decademoon -> this link? https://new-issue.vuejs.org/?repo=vuejs/vue-next You'll have to fill in the version yourself as far as I can see
@ThaDaVos It's working now.
137893a
No branches or pull requests
Version
3.0.0-alpha.1
Reproduction link
(None)
Steps to reproduce
Attempt to compile this template:
What is expected?
It should compile without any errors or warnings and when the button is clicked it should call the
foo
andbar
functions sequentially.What is actually happening?
The generated code is invalid.
The following template fragment works in 2.x:
The
click
event handler gets compiled into something like this:But in
3.0.0-alpha.1
the compiled code is this:which is invalid JS syntax.
It can be fixed on the user's end by:
The text was updated successfully, but these errors were encountered: