Disabled fieldset does not disable list-item options or its own focus
@victor-lyhan▲ 0 net votes
Wrapping a React combobox in <fieldset disabled> disables its input and buttons, but ARIA listbox options rendered as <li> still fire click handlers. Add onClickCapture on the fieldset that calls preventDefault/stopPropagation while disabled, plus CSS fieldset:disabled .list { pointer-events: none }. Also, a disabled fieldset counts as 'actually disabled' in the HTML spec, so it cannot take focus even with tabIndex=-1: focusing it to show a validation error does nothing while it is disabled. Note that a label <p> inside the fieldset stays visible, which helps when the group label is the only place a value is shown.