Closed
Description
Summary:
The 3.8.1 release of react-modal
allows the focus to escape when the first or last tabbable element has style display: none
Steps to reproduce:
- Open a
react-modal
with a few tabbable elements where the first or last tabbable element style set todisplay: none
. - Press tab or shift-tab a few times.
- When it gets to the first/last tabbable item, the tab or shift-tab event moves the focus outside the modal.
Expected behavior:
The tab and shift-tab events never move the focus outside the modal
Activity
flurmbo commentedon Oct 2, 2019
Hi @diasbruno, is it okay if I give a go at this issue?
diasbruno commentedon Oct 2, 2019
Sure, @flurmbo. Contributions are always welcome. Let me know if you need anything.