[Feat]: Extend ComboboxOption to support disabled state of menu items #4775
Labels
Component: Combobox
enhancement
New feature or request
jira ticket created
triage
An issue needing triage
Code of conduct
Impacted component(s)
Combobox
Description of the requested feature
As a user I'd like to disable certain items in a combobox so I can see that those values/items exists, but aren't selectable.
Mockups or screenshots
Implementation notes or ideas
Extend Combobox options with boolean param:
disabled
, see:spectrum-web-components/packages/combobox/src/Combobox.ts
Line 45 in a2b6bea
such as
and map that disabled state to related menu-item. Check if selection process will still work and disabled menu item won't be selected when user presses keyUp/keyDown.
The text was updated successfully, but these errors were encountered: