Commit 3e22873
Update View-itest.js for pointerEvents box-only unflattening behavior (#55224)
Summary:
Pull Request resolved: #55224
Changelog: [Internal]
D90772188 changed the behavior of views with `pointerEvents="box-only"` to prevent them from being collapsed/flattened. This is intentional 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.
The test expected the old behavior where `<View pointerEvents="box-only" />` would be collapsed and render `null`. After the C++ change, views with `pointerEvents="box-only"` now always form a stacking context and are not collapsed.
Updated the test to expect the new behavior where `pointerEvents="box-only"` causes views to unflatten, consistent with how `pointerEvents="none"` behaves.
Reviewed By: rubennorte
Differential Revision: D90984297
fbshipit-source-id: 799e4e26b29126386f4fd8183e2ce0b5cb719f9f1 parent 9f686f2 commit 3e22873
1 file changed
Lines changed: 2 additions & 10 deletions
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | 319 | | |
328 | 320 | | |
329 | 321 | | |
330 | 322 | | |
331 | 323 | | |
332 | 324 | | |
333 | | - | |
| 325 | + | |
334 | 326 | | |
335 | 327 | | |
336 | 328 | | |
| |||
0 commit comments