-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Always render hidden inputs #2977
Comments
|
Hey! This should be fixed by #3095, and will be available in the next release. You can already try it using:
|
Hey, I just tries out the |
@RobinMalfait Any updates on this? This is kind of a critical bug :( |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v2.0.0-alpha.4
What browser are you using?
Chrome
Describe your issue
With the current behaviour of the switch & checkbox component, the hidden checkbox is just rendered when the checkbox is checked.
This makes it pretty hard to implement these controls within a form framework like
conform
or submitting a formonChange
(the input is visible after the form is submitted).Would it be possible to always render the hidden checkbox input?
The text was updated successfully, but these errors were encountered: