-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/list): fix tabindex="-1" not being maintained when disab…
…led (#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. (cherry picked from commit 8304a94)
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters