You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(material/list): fix tabindex="-1" not being maintained when disabled (#25860)
When entire list is disabled, avoid adding list options to the tab order
in the following situations:
- focusin event is triggered on an option. This can happen when the
end user clicks on a list option.
- ngOnInit happens when list is disabled
- updating selection state
When list is disabled tabindex of every option should always be -1.
Tabindex was set to 0 mainly because `_resetActionOption` only considered when
list options where disabled, but didn't consider when the list itself is
disabled.
Fix issues by setting tabindex to -1 when disabled and making
`_handleFocusin` a noop when disabled.
0 commit comments