Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prevent focus on <Checkbox /> when it is disabled #3251

Merged
merged 2 commits into from
May 28, 2024
Merged

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where the <Checkbox /> component could still receive focus even if it was disabled.

Apart from that, if a form was submitted, the checkbox data was not included. Clicking or interacting with the checkbox would not do anything.

Fixes: #3212

Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 1:56pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 1:56pm

@RobinMalfait RobinMalfait merged commit b3a508b into main May 28, 2024
8 checks passed
@RobinMalfait RobinMalfait deleted the fix/issue-3212 branch May 28, 2024 13:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V2 Bug - Disabled checkbox selected when navigating by tab
2 participants