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.
Link to example of issue:
https://jsfiddle.net/ufgse6np/5/embedded/result/
Code: https://jsfiddle.net/ufgse6np/5/
Summary:
Steps to reproduce:
Expected behavior:
The modal should call
onRequestClose, but it doesn't. The active element is the body.Link to example of issue:
https://jsfiddle.net/ufgse6np/5/embedded/result/
Code: https://jsfiddle.net/ufgse6np/5/