You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The announcer will say Close Modal, title heading while the focus is on the Title.
The expected behavior would be it to say only title heading
Initially I found the bug on the version 0.74.5. However it's slightly different. On 0.74.5, the behavior is a bit flaky, but most of the time the first text item is announced instead, but ignoring its role. And the focus goes to the second element. So instead of TalkBack announcing title heading, it announces title, body description. So something changed between these versions, but neither have the expected behavior.
Steps to reproduce
Install dependencies with yarn
Run metro server with yarn start
Run android app yarn android
Enable TalkBack on the emulators settings or by running adb shell settings put secure enabled_accessibility_services com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService on the terminal
Description
When a Modal is opened while TalkBack is enabled, the last text element inside of a modal is announced before the first which is currently focused.
As in the Reproducer example, when this modal gets opened
The announcer will say
Close Modal, title heading
while the focus is on theTitle
.The expected behavior would be it to say only
title heading
Initially I found the bug on the version 0.74.5. However it's slightly different. On 0.74.5, the behavior is a bit flaky, but most of the time the first text item is announced instead, but ignoring its role. And the focus goes to the second element. So instead of TalkBack announcing
title heading
, it announcestitle, body description
. So something changed between these versions, but neither have the expected behavior.Steps to reproduce
yarn
yarn start
yarn android
adb shell settings put secure enabled_accessibility_services com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService
on the terminalOpen Modal
buttonReact Native Version
0.78.0
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/JoaoMosmann/ReactNativeModalTalkBackBugReproducer
Screenshots and Videos
React Native 0.78.0 (Last text element is announced first)
https://github.com/user-attachments/assets/34c8161f-8b81-4d11-adc2-c3df52732978
React Native 0.74.5 (First element is announced, by without its role, but focus goes to second element instead)
https://github.com/user-attachments/assets/0047d323-d113-4293-b256-c5c6617e2ba2
The text was updated successfully, but these errors were encountered: