nico3333fr / jquery-accessible-modal-window-aria

jQuery simple and accessible modal window, using ARIA
MIT License
60 stars 20 forks source link

Focus not staying in the modal on iPhone (iOS 11.2.2) #26

Open gparsloe opened 6 years ago

gparsloe commented 6 years ago

Hello. Thanks for sharing your code. I may be making an error, but when I test the demo page modal examples ( https://a11y.nicolas-hoffmann.net/modal/ ), the focus does not stay on the modal for me.

I'm on an iPhone 6s (iOS 11.2.2). I opened the demo page in Safari on the iPhone, then turned on VoiceOver. When I activate the modal, it opens correctly. When I use a swipe right gesture repeatedly, the focus correctly goes on the items in the modal window, but then incorrectly focuses on items that are not on the modal window even though I haven't closed the modal yet. The focus is not trapped in the modal.

I have also tried testing it with a bluetooth keyboard attached and with VoiceOver on. The same thing happens (focus is not trapped in the modal). -Gail Parsloe

nico3333fr commented 6 years ago

Hi there,

sorry for response time, was very busy.

Quick question: did you test on iOS 11.4.1 too? (just to know if the bug is still present)

Do you encounter the same bug on https://van11y.net/downloads/modal/demo/index.html ? (the same script, but without jQuery)