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

When the same component is bound to the same event, the event will be problematic #1747

Closed
tangjinzhou opened this issue Jul 31, 2020 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@tangjinzhou
Copy link
Contributor

Version

3.0.0-rc.5

Reproduction link

https://jsbin.com/reyalagawo/edit?html,console,output

Steps to reproduce

1、click button1 and button2 will echo noop
2、click toggle disable
3、 click button1 will echo noop,click button2 will echo twice click
4、toggle disable more,button2 will echo ... ... any

What is expected?

when bind dynamic event, can trigger correct event

What is actually happening?

not correct event

@posva posva added the 🐞 bug Something isn't working label Jul 31, 2020
@posva
Copy link
Member

posva commented Jul 31, 2020

As a workaround you can do use @click="method()" instead of @click="method"

@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants