Skip to content

Sync clipChildren with overflow: hidden#55368

Closed
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D91775635
Closed

Sync clipChildren with overflow: hidden#55368
fabriziocucci wants to merge 1 commit intofacebook:mainfrom
fabriziocucci:export-D91775635

Conversation

@fabriziocucci
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

We found an issue (T253147322) in the LivingRoom top bar where a full-screen OCPanel within a parent with overflow: hidden occludes content outside the parent (see code).

This change adds a feature flag enableClipChildrenForOverflowHidden that, when enabled, sets clipChildren = true whenever overflow: hidden is set. This makes TouchTargetHelper also reject touches on children outside the parent's bounds (see code), aligning hit testing behavior with visual rendering.

The fix is gated behind a feature flag to allow gradual rollout and prevent potential regressions in apps that may rely on the current behavior.

Reviewed By: Abbondanzo

Differential Revision: D91775635

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 30, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jan 30, 2026

@fabriziocucci has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91775635.

Summary:

Changelog: [Internal]

We found an issue (T253147322) in the LivingRoom top bar where a full-screen OCPanel within a parent with `overflow: hidden` occludes content outside the parent (see [code](https://www.internalfb.com/code/fbsource/[753feac76cb1]/arvr/js/apps/LivingRoom/src/ReactNative/App/HTV/Shared/Toolbar/LivingRoomToolbar.react.js?lines=85-96)).

This change adds a feature flag `enableClipChildrenForOverflowHidden` that, when enabled, sets `clipChildren = true` whenever `overflow: hidden` is set. This makes `TouchTargetHelper` also reject touches on children outside the parent's bounds (see [code](https://www.internalfb.com/code/fbsource/[753feac76cb1]/xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.kt?lines=211-213)), aligning hit testing behavior with visual rendering.

The fix is gated behind a feature flag to allow gradual rollout and prevent potential regressions in apps that may rely on the current behavior.

Reviewed By: Abbondanzo

Differential Revision: D91775635
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @fabriziocucci in 1c8f297

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants