-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/a11y
Description
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
The focus origin does not change for the first element on the page when we leave the content of the page and then return with another focus origin for the element.
Reproduction
Steps to reproduce:
- Go to: https://stackblitz.com/edit/sl2c5w?file=src/app/focus-monitor-focus-via-example.html
- Click on the first button ("Focus Monitored Element")
- Focus origin is set to "mouse"
- Click on the URL from the page
- Press TAB key to focus again the first button
Expected Behavior
Focus origin should be "keyboard"
Actual Behavior
Focus origin remains set to "mouse"
Environment
- Angular: 16.0.0
- CDK/Material: 16.0.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/a11y