Subscribe on changes!

Can not prevent click transmitted to the outside

avatar
Sep 28th 2023

Vue version

3.3.4

Link to minimal reproduction

https://stackblitz.com/edit/vue-jgdpok

Steps to reproduce

you click on the first "click me", you will see counter increase 2 (event trigger 2 times) you click on the second"click me", you will see counter increase 1 (event trigger 1 times) different is I do not pass @click into the second "click me"

What is expected?

it is a feature or a bug? if it is a feature, how can I prevent it? In my case, I can not block click inside the component, I have to block the event where it is declared

What is actually happening?

Click event auto trigger @click

System Info

No response

Any additional comments?

No response