-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Describe the bug
When tabbing through my site, I noticed that there were several hidden elements that took focus. I traced them down to the react-query devtools, which, even though it was closed, took focus.
To Reproduce
Steps to reproduce the behavior:
- Go to a page where the devtools is included, but not open.
- Open and close the devtools to set focus on the devtools button.
- Press shift-tab to focus the previous element.
- Run
document.activeElementin the devtools and confirm that theRemovebutton of the devtools is focused.
Expected behavior
I expect to be able to tab through elements on the page, including the button to open and close the query devtools, but not tab through the devtools itself when it is closed.