Open
Description
Summary:
Focus returns as expected in Chrome. But it fails in Firefox and Safari.
Steps to reproduce:
- Click the button.
- Close modal.
- The button is not focused (its text should be red).
Expected behavior:
The button is focused (its text is red).
Link to example of issue:
https://codesandbox.io/s/mjy915nqp9
Additional notes:
As I see in returnFocus
function, focusLaterElements
array consists of <body>
in Firefox and Safari instead of <button>
(in Chrome).
Metadata
Metadata
Assignees
Labels
No labels