Current behavior
Typing on a closed Combobox trigger can select a disabled item and call onValueChange with its value.
Expected behavior
Skip disabled items and select the next enabled match. If no enabled item matches, leave the value unchanged.
Reproducible example
StackBlitz reproduction
- Leave the popup closed with Banana selected.
- Use Tab to focus the trigger.
- Press
a.
Apple is selected even though its Combobox.Item is disabled. Apricot is enabled and should be selected instead.
Base UI version
The reproduction uses @base-ui/react: latest. Also reproduced locally on master at 52c38143e (1.8.0).
Environment
Chromium on macOS; no assistive technology.
Additional context
ComboboxTrigger commits the typeahead match directly without filtering disabled items, bypassing the item's click guard.
Current behavior
Typing on a closed Combobox trigger can select a disabled item and call
onValueChangewith its value.Expected behavior
Skip disabled items and select the next enabled match. If no enabled item matches, leave the value unchanged.
Reproducible example
StackBlitz reproduction
a.Apple is selected even though its
Combobox.Itemis disabled. Apricot is enabled and should be selected instead.Base UI version
The reproduction uses
@base-ui/react: latest. Also reproduced locally onmasterat52c38143e(1.8.0).Environment
Chromium on macOS; no assistive technology.
Additional context
ComboboxTriggercommits the typeahead match directly without filtering disabled items, bypassing the item's click guard.