Repository navigation
Refactor focusability handling in ReactAxOrderHelper - #60379
PreetamPatidar wants to merge 1 commit into
Conversation
|
Hi @PreetamPatidar! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Summary:
Fixes an issue where changes to the
accessibleorfocusableprops on Text, Image, and ScrollView components are not preserved correctly whenexperimental_accessibilityOrderis active.Currently, the accessibility order helper temporarily changes a view's focusability and stores its original value. If the component's
accessibleorfocusableprop changes while the view is being held out of the accessibility order, the stored value can become stale. When the accessibility order is removed or the accessibility service state changes, the old value may be restored instead of the latest prop value.This change ensures that focusability updates are preserved while accessibility-order handling is active, preventing stale values from being restored.
Changelog:
[ANDROID] [FIXED] - Preserve updated focusability values for Text, Image, and ScrollView components when
experimental_accessibilityOrderis active.Test Plan:
accessiblefromfalsetotruewhile a view is held in the accessibility order preserves the updated value.accessiblefromtruetofalseworks correctly.focusableprop are preserved in both directions.experimental_accessibilityOrderrestores the latest focusability value.