You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using <Switch type="submit"> clicking the button changes the current setting but does not submit the form. In the reproduction above the form submits with a normal button, and with a button that has the role="switch", but the <Switch> component does not.
The text was updated successfully, but these errors were encountered:
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v2.1.1
What browser are you using?
Arc (Chrome)
Reproduction URL
CodeSandbox:
Describe your issue
When using
<Switch type="submit">
clicking the button changes the current setting but does not submit the form. In the reproduction above the form submits with a normal button, and with a button that has therole="switch"
, but the<Switch>
component does not.The text was updated successfully, but these errors were encountered: