Dialog: (accessibility) "display: none" inside dialog breaks focus tabbing #6095
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Milestone
Describe the bug
When a Dialog contains a section with "display: none" and a as child of section, user cannot reach each focusable input/buttons/... using TAB key.
Reproducer
https://stackblitz.com/edit/qejj7w?file=src%2FApp.jsx
PrimeReact version
10.5.1
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
50 cents: Issue comes from DomHandler.getFocusableElements() ?
Note that issue is not the same as #4035
Expected behavior
All focusable elements inside a dialog box should be reached using Tab (Shift+Tab) key.
The text was updated successfully, but these errors were encountered: