Is this a regression?
The previous version in which this bug was not present was
No response
Description
Tab and Shift + Tab move focus outside the dialog when there are no focusable elements inside it.
Reproduction
StackBlitz link: https://stackblitz.com/edit/3l8tbmvh?file=src%2Fexample%2Fcdk-dialog-data-example.ts
Steps to reproduce:
- Navigate to the "Open dialog" button with the keyboard and press
Enter.
- Press either
Tab or Shift + Tab.
Expected Behavior
Tab and Shift + Tab do not move focus outside the dialog.
Actual Behavior
Tab and Shift + Tab move focus outside the dialog.
Environment
- Angular: v22
- CDK/Material: v22
- Browser(s): any
- Operating System (e.g. Windows, macOS, Ubuntu): any
Is this a regression?
The previous version in which this bug was not present was
No response
Description
TabandShift+Tabmove focus outside the dialog when there are no focusable elements inside it.Reproduction
StackBlitz link: https://stackblitz.com/edit/3l8tbmvh?file=src%2Fexample%2Fcdk-dialog-data-example.ts
Steps to reproduce:
Enter.TaborShift+Tab.Expected Behavior
TabandShift+Tabdo not move focus outside the dialog.Actual Behavior
TabandShift+Tabmove focus outside the dialog.Environment