react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Fix accessibilityOrder when referencing both a parent and its children

Open jorge-cab opened this issue 6 months ago • 2 comments

Summary: With the new implementation of accessibilityOrder we associate virtualView's nodes to the actual views they reperesent by calling addChild(view)

This however causes an issue, the view itself will populate its accessibility children which prevents them from following the axOrder if both the parent and children are mentioned in the order.

With this change we now set a delegate and a provider to every view within the view that sets an axOrder to prevent the default logic to set accessibilityChildren on views that are not considered "containers".

In the case that they are "containers" (not accessible yet mentioned in the order) We want to keep the default logic that assigns them accessibilityChildren.

Differential Revision: D76911074

jorge-cab avatar Jun 18 '25 19:06 jorge-cab

This pull request was exported from Phabricator. Differential Revision: D76911074

facebook-github-bot avatar Jun 18 '25 19:06 facebook-github-bot

This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

react-native-bot avatar Dec 16 '25 05:12 react-native-bot

This PR was closed because it has been stalled for 7 days with no activity.

react-native-bot avatar Dec 23 '25 05:12 react-native-bot