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

Event handlers with .once only get the first parameter #11732

Closed
foundryspatial-duncan opened this issue Oct 22, 2020 · 1 comment
Closed

Event handlers with .once only get the first parameter #11732

foundryspatial-duncan opened this issue Oct 22, 2020 · 1 comment

Comments

@foundryspatial-duncan
Copy link

Version

2.6.11

Reproduction link

https://codepen.io/foundryspatial-duncan/pen/VwjmNqY?editors=1010

Steps to reproduce

Any component event that emits more than one parameter, like $emit('play', 'foo', 'bar', 'baz') will only pass the first parameter ("foo") to the handler if you use the .once modifier.

What is expected?

All parameters get passed to the event handler. Same behavior as normal v-on, but it only happens once.

What is actually happening?

Only the first parameter gets passed, and the others are dropped.


Looks related to #10867 (which says it's any modifier and not just .once) but that one's from last year, and it's merged & closed... I'm still seeing it in the latest 2.6.11 & 2.6.12

@posva
Copy link
Member

posva commented Oct 23, 2020

It hasn't been released yet

@posva posva closed this as completed Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants