Skip to content

iOS: Modal is not automatically focused, and you can focus things outside the modal #4986

Open
@simonflk

Description

@simonflk

Description

Using Voiceover on iOS. When I open a modal I expect the focus to shift to the modal so that I know something happened. I should be able to navigate the contents of the modal clearly and not be able to access content from outside the modal while the modal is open

CodeSandbox/Snack link

https://snack.expo.dev/@simonflk/nativebase-voiceover-modal-issue

Steps to reproduce

  1. Open the snack link
  2. Enable Voiceover on iOS
  3. focus the button
  4. Double-tap to press the button
  5. The modal is open, but the trigger button is still focused
  6. Swipe left or right to access the contents of the modal

NativeBase Version

3.4.3

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

iOS 15.4:

RPReplay_Final1651514831.mov

Android 12:

I could not record sound, but you can see clearly that the modal header is automatically focused when the modal opens, and I cannot access any content outside the modal.

screen-20220502-201953_2.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions