Commit 0fe23d7
Fix modal hover interception to call the correct super method (#54991)
Summary:
Fixes an incorrect super call in `ReactModalHostView.onInterceptHoverEvent`. The method was returning `super.onHoverEvent(event)`, which bypasses the intended interception behavior and can cause inconsistent hover/pointer dispatching for modals. This change ensures the intercept hook delegates to the correct superclass implementation.
## Changelog:
[ANDROID] [FIXED] - Fix `ReactModalHostView` hover interception to call `super.onInterceptHoverEvent` instead of `super.onHoverEvent`.
Pull Request resolved: #54991
Test Plan:
* Built Android locally:
* `./gradlew :packages:react-native:ReactAndroid:assembleDebug`
Reviewed By: cipolleschi, christophpurrer
Differential Revision: D89887915
Pulled By: cortinico
fbshipit-source-id: 53d16bdbb1f88097814c2f06fca3601ff3d57cbd1 parent e6923dd commit 0fe23d7
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| |||
0 commit comments