Skip to content

Combobox with disabled options without building combobox from scratch? #1125

Answered by SiTaggart
productdana asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @productdana

In this instance you don't need a disabled state for listbox options for those two specific use cases. The reason being is that you need to be able to communicate those two states to users who use assistive technology such as screen readers.

When something is disabled it is non-interactive. You can't focus on it, you can't select it, it's effectively removed from the DOM. As such you can't communicate to assistive technology these states of loading, or empty. They must remain enabled for me to get to them.

Generally speaking because of the disabled logic, there isn't much of a concept of disabled options in a combobox. If you can't get to them, and you can't select them, y…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@productdana
Comment options

@SiTaggart
Comment options

@productdana
Comment options

Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants