Skip to content

bug(material/list): can tab to a disabled list when selecting an item before disabling it #25730

Closed
@zarend

Description

@zarend

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Selecting an item in a list, then disabling the list leaves the selected item in the tab order. Should never be able to tab to the list after disabling it.

Reproduction

Steps to reproduce:

  1. Open "https://material2-dev.web.app/list"
  2. Navigate to "Selection list"
  3. (Notice options "Bananas, Oranges, etc.")
  4. Click "Bananas"
  5. Click "Disable Selection List"
  6. Press shift + tab twice

Expected Behavior

Focus is not on the "Selection list"

Actual Behavior

Focus is on the "Selection list"
image

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/list

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions