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

fix: remove duplicate keydown enter #639

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

runyasak
Copy link
Contributor

Overview

This PR is related to #638.

I saw ToggleRoot emitted an event twice, @click and @keydown.enter. This made pressed was mutated twice too.
Then, I removed @keydown.enter, an event was still emitted after pressing Enter but only once from @click.
@click works with pressing Space too.

Scope of work

I have removed @keydown.enter from ToggleRoot.


If you have any feedback or suggestion, please let me know.

@zernonia zernonia linked an issue Jan 25, 2024 that may be closed by this pull request
2 tasks
Copy link
Member

@zernonia zernonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zernonia zernonia merged commit 8e40d17 into radix-vue:main Jan 26, 2024
2 checks passed
@runyasak runyasak deleted the fix/toggle-group-enter branch January 26, 2024 16:06
@runyasak
Copy link
Contributor Author

@zernonia Thank you for reviewing my code.

Actually, I've followed you from Vue.js Nation 2024 yesterday.
Your talk and demo were so great. 😁

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.

[Bug]: "Enter" on Toggle Groups not working
2 participants