Commit 0649717
Prevent view collapsing when pointerEvents is 'box-only' (#55185)
Summary:
Pull Request resolved: #55185
Changelog: [Internal]
This change ensures that views with `pointerEvents` set to `'box-only'` are not collapsed, preserving the parent-children relationship in the view hierarchy.
This is necessary because when `important_for_interaction` is applied on a view with `pointerEvents='box-only'`, the view must remain in the hierarchy to correctly signal to the gaze system that its children are not important for interaction. Without this fix, the view could be collapsed during flattening, breaking the propagation of the `important_for_interaction` property to descendant views.
Reviewed By: javache
Differential Revision: D90772188
fbshipit-source-id: 6a6a408845ebd1f86e420f5309160e7a6b3a97151 parent 03b1bf6 commit 0649717
File tree
1 file changed
+1
-0
lines changed- packages/react-native/ReactCommon/react/renderer/components/view
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments