Previous Element get read with Popover component on escape
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
When we close the popover dialog with `esc` it screenreader (NVDA ) read the previous interactive element while focus go to the triggered element.
### 🤔 Expected Behavior?
It should not read unnecessary element
### 😯 Current Behavior
It is reading the previous interactive element on `esc` close of dialog
### 💁 Possible Solution
_No response_
### 🔦 Context
https://github.com/user-attachments/assets/3ad0a6fc-68eb-434c-8c64-d3f95bf1eb70
### 🖥️ Steps to Reproduce
https://codesandbox.io/p/sandbox/nxd482?file=%2Fsrc%2FApp.js%3A13%2C23
https://github.com/user-attachments/assets/3ad0a6fc-68eb-434c-8c64-d3f95bf1eb70
### Version
Latest
### What browsers are you seeing the problem on?
Chrome
### If other, please specify.
_No response_
### What operating system are you using?
Windows
### 🧢 Your Company/Team
_No response_
### 🕷 Tracking Issue
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.