-
-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Labels
component: ComboboxThe React component.The React component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.scope: fieldThis is the name of the generic UI component, not the React module!This is the name of the generic UI component, not the React module!scope: selectChanges related to the select.Changes related to the select.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Bug report
Current behavior
If used in a form and when using both required
and multiple
: <Combobox.Root required name="language" items={langs} multiple>
it is not possible to submit a form.
It seems that the required validation is checking wether the input has a value and not if the Combobox itself has a value.
Expected behavior
Should be able to submit a form when there are selected values in the combobox.
Reproducible example
https://codesandbox.io/p/sandbox/keen-boyd-5h8x69
Base UI version
1.0.0-beta.4
Which browser are you using?
Chrome
Which OS are you using?
Mac OS 15.5
Metadata
Metadata
Assignees
Labels
component: ComboboxThe React component.The React component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.scope: fieldThis is the name of the generic UI component, not the React module!This is the name of the generic UI component, not the React module!scope: selectChanges related to the select.Changes related to the select.type: bugIt doesn't behave as expected.It doesn't behave as expected.