-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
Status: Pending ReviewIssue or pull request is being reviewed by Core TeamIssue or pull request is being reviewed by Core Team
Milestone
Description
Describe the bug
Cannot focus the confirm modal with TAB, when combining with focustrap.
Pull Request Link
No response
Reason for not contributing a PR
- Lack of time
- Unsure how to implement the fix/feature
- Difficulty understanding the codebase
- Other
Other Reason
No response
Reproducer
https://stackblitz.com/edit/efphaqph?file=src%2Fapp%2Fconfirm-popup-basic-demo.html
Environment
Using Firefox Developper version latest, tried with Chrome, Chromium
Angular version
21
PrimeNG version
v20
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
- Open the stack blitz
- Click on
Toggle Focus trapso it is enabled - Use
TABto navigate onSavebutton and press space - Use
TABto navigate on modal -> you cant - Now disable focus trap
- Use
MAJ+TABto navigate onSavebutton and press space - Use
TABto navigate into the modal -> you can and will be trapped in the modal
Expected behavior
I expected the modal to be injected nearby (just after) the target, so it would behave as normal and I could navigate into the modal while staying in my Focus trap jail.
Metadata
Metadata
Assignees
Labels
Status: Pending ReviewIssue or pull request is being reviewed by Core TeamIssue or pull request is being reviewed by Core Team
Type
Projects
Status
Done