Skip to content

bug(MatRadioGroup): paging options prevents keyboard focus #27461

Closed
@jackalvrus

Description

@jackalvrus

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

Using a mat-paginator to page the options in a MatRadioGroup prevents the radio group from receiving focus using the tab key on pages other than the first page.

Reproduction

StackBlitz link: https://stackblitz.com/edit/q2wcmz

Steps to reproduce:

  1. Click in the input box at the top to give it focus
  2. Press tab; note that the radio group receives focus
  3. Press tab again; note that this gives focus to the next-page button in the paginator
  4. Press space or enter to change to the next page; note that the radio group options have changed
  5. Press shift+tab; note that the paginator previous-page button receives focus
  6. Press shift+tab again; note that the input box receives focus, skipping over the radio group
  7. Press tab; note that the paginator receives focus, skipping over the radio group

Expected Behavior

After changing pages, the radio group should still be able to receive focus using the keyboard.

Actual Behavior

After changing pages, the radio group is unable to receive focus using the keyboard

Environment

  • Angular: 15.1.1
  • CDK/Material: 15.1.1
  • Browser(s): Chrome 114.0.5735.110, Firefox 115.0.2 (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/radio

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions