-
-
Notifications
You must be signed in to change notification settings - Fork 167
fix: allow form submission when pressing enter on a checkbox #1895
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
base: main
Are you sure you want to change the base?
Conversation
|
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
|
Could you not just pass type="submit" to the checkbox? |
|
I think we just don't prevent default when enter is pressed if type="submit" seems like a simpler fix here |
|
Ah but I guess that would still strigger a "click" event on the button thus changing the state, so this solution might be best after all. I do still think we should detect the type prop and only submit if it's type="submit" |
yes exactly, the click event is detected instead. ok I will update the code to reflect that change |
|
wait, don't you think that having the |
You're comparing an |
fixes: #1894