pFocusTrap: ignoring anchor tags as focusable elements #12527
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Anchor tags within pFocusTrap are ignored when tabbing through focusable elements.
Environment
Chrome browser on Windows 10
Reproducer
https://stackblitz.com/edit/github-x5ff8g?file=src%2Fapp%2Fapp.component.html
Angular version
14.0.7
PrimeNG version
14.0.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
n/a
Browser(s)
chrome
Steps to reproduce the behavior
Create a pFocustrap element with an anchor tag inside. Give the anchor an href attribute. Notice it can't be focused.
Expected behavior
Anchor should be able to focus by tabbing.
The text was updated successfully, but these errors were encountered: