Skip to content

Commit e486fda

Browse files
joevilchesfacebook-github-bot
authored andcommitted
Check feature flags for a11yOrder iff prop exists (#50967)
Summary: Pull Request resolved: #50967 In some cases we may want to check this only if the prop exists Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D73793783 fbshipit-source-id: b498f82414edf63d8644b90bb3932298eb37b43c
1 parent 3e3094c commit e486fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
391391
}
392392
}
393393

394-
if (ReactNativeFeatureFlags::enableAccessibilityOrder() &&
395-
oldViewProps.accessibilityOrder != newViewProps.accessibilityOrder) {
394+
if (oldViewProps.accessibilityOrder != newViewProps.accessibilityOrder &&
395+
ReactNativeFeatureFlags::enableAccessibilityOrder()) {
396396
_accessibleElementsNativeIds = [NSMutableArray new];
397397
for (const std::string &childId : newViewProps.accessibilityOrder) {
398398
[_accessibleElementsNativeIds addObject:RCTNSStringFromString(childId)];

0 commit comments

Comments
 (0)