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

<Switch> does not submit form with type="submit" #3343

Open
SimeonGriggs opened this issue Jun 28, 2024 · 0 comments
Open

<Switch> does not submit form with type="submit" #3343

SimeonGriggs opened this issue Jun 28, 2024 · 0 comments

Comments

@SimeonGriggs
Copy link

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 the role="switch", but the <Switch> component does not.

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

No branches or pull requests

1 participant