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

Prevent double clicking #277

Closed
wants to merge 1 commit into from
Closed

Prevent double clicking #277

wants to merge 1 commit into from

Conversation

1VinceP
Copy link
Contributor

@1VinceP 1VinceP commented Apr 15, 2022

In Vue 3, click events fall through meaning each event is fired twice when adding @click prop to the component. Adding emits: ['click'] tells the component to expect an external click event, therefore preventing the double event. See here for more details

In Vue 3, click events fall through meaning each event is fired twice when adding @click prop to the component. Adding `emits: ['click']` tells the component to expect an external click event, therefore preventing the double event. See [here](vuejs/core#813) for more details
@gtjamesa
Copy link

@robcresswell can you merge this and publish a release?

@robcresswell
Copy link
Owner

Hello, merged #282; I marked you as a co-author @1VinceP. I made the other PR so I could make the commits play nice with semantic-release. Didn't want to ask you to update the PR so many months later. Hope thats okay. Thanks for the fix!

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

Successfully merging this pull request may close these issues.

3 participants