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

Combobox disabled attribute not disabling hidden inputs #2988

Closed
VictorGlindasPaf opened this issue Feb 16, 2024 · 1 comment · Fixed by #3004
Closed

Combobox disabled attribute not disabling hidden inputs #2988

VictorGlindasPaf opened this issue Feb 16, 2024 · 1 comment · Fixed by #3004
Assignees

Comments

@VictorGlindasPaf
Copy link

VictorGlindasPaf commented Feb 16, 2024

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

1.7.18

What browser are you using?

Chrome

Reproduction URL

https://codesandbox.io/p/devbox/relaxed-shtern-vrkmkt?workspaceId=6a20031e-e5fd-43b6[…]ebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Describe your issue

When passing disabled to Combobox, the hiden inputs it renders are not disabled, and are still submitted via any parent form.

@VictorGlindasPaf VictorGlindasPaf changed the title Combobox disabled attribute not disabling hidden input Combobox disabled attribute not disabling hidden inputs Feb 16, 2024
@RobinMalfait RobinMalfait self-assigned this Feb 21, 2024
@RobinMalfait
Copy link
Collaborator

Hey!

This should be fixed by #3004, and will be available in the next release. This will also be fixed for all the other form-like components.

You can already try it using:

  • npm install @headlessui/react@insiders.
  • npm install @headlessui/vue@insiders.

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

Successfully merging a pull request may close this issue.

2 participants