Open
Description
Summary:
Steps to reproduce:
- Focus an element inside the modal (e.g. a link)
- Remove it from the DOM (e.g. when the link is clicked, the modal contents re-render to the new route)
- Press escape
Expected behavior:
The modal should call onRequestClose
, but it doesn't. The active element is the body.