Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,13 @@ - (void)prepareForRecycle
_removeClippedSubviews = NO;
_reactSubviews = [NSMutableArray new];
_layoutMetrics = {};

// Reset accessibilityViewIsModal so it does not leak across recycled views.
// updateProps only writes this property when (oldProps != newProps); after a
// view is recycled _props resets to the default (NO), so a recycled view that
// is reused without the prop keeps the stale YES and traps VoiceOver / UI
// automation against a now-unrelated subtree (empty accessibility tree).
self.accessibilityElement.accessibilityViewIsModal = NO;
}

- (void)setPropKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN:(NSSet<NSString *> *_Nullable)props
Expand Down
Loading