Open jcksonhe opened 1 month ago
React Components / v9 (@fluentui/react-components)
System: OS: Windows 10 10.0.22631 CPU: (12) x64 Intel(R) Xeon(R) W-2235 CPU @ 3.80GHz Memory: 12.67 GB / 63.59 GB Browsers: Edge: Chromium (126.0.2592.102) Internet Explorer: 11.0.22621.3527
yes
https://stackblitz.com/edit/g7c3pb?file=src%2Fexample.tsx
I have a component that opens a Dialog/Drawer, which can open other Dialogs/Drawers.
However, I noticed that if I:
If I don't cycle the focus many times, the issue doesn't repro. Same issue occurs with Drawer.
Expect restore focus to work in all scenarios after pressing "Esc" within a Dialog/Drawer
No response
Normal
no
I was able to repro, I tried changing the dialogs to buttons and it did not repro, so it seems it's only with nested dialogs.
Library
React Components / v9 (@fluentui/react-components)
System Info
Are you reporting Accessibility issue?
yes
Reproduction
https://stackblitz.com/edit/g7c3pb?file=src%2Fexample.tsx
Bug Description
Actual Behavior
I have a component that opens a Dialog/Drawer, which can open other Dialogs/Drawers.
However, I noticed that if I:
If I don't cycle the focus many times, the issue doesn't repro. Same issue occurs with Drawer.
Expected Behavior
Expect restore focus to work in all scenarios after pressing "Esc" within a Dialog/Drawer
Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations