Skip to content

[combobox] cant submit a form with required and multiple prop #2913

@adamlindqvist

Description

@adamlindqvist

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

No one assigned

    Labels

    component: ComboboxThe React component.has workaroundThere’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!scope: selectChanges related to the select.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions