reactjs/react-modal
View on GitHubFocus escapes modal when the last element in the modal is an iframe
Open
#226 opened on Sep 19, 2016
bughelp wanted
Description
Summary:
When an iframe is the last element in the modal, focus escapes the modal when using keyboard navigation. This is problematic particularly for screen reader users since the rest of the DOM has aria-hidden set to true. Screen readers are no longer able to access the modal once focus has escaped from it. I used Chrome Version 53.0.2785.116 (64-bit).
Steps to reproduce:
- Unzip the
modal-test.zipfile - Run
npm install - Run
npm run build - Run
node index.js - Navigate to page and tab through until focus escapes the modal (wikipedia has a lot of links so tabbing takes awhile)
Expected behavior:
Focus should be contained within the modal even if an iframe is the last element in the modal.