mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d666eb7a22
Summary: Changelog: [Internal] - Fix a bug in dispatch filtering that was too aggressively filtering out events to fire. My flaw in logic was limiting the `isListening(view, bubble)` logic to `i==0` for relevant `ViewTargets`, when in reality, we need to be checking if every `ViewTarget` passed to `filterByShouldDispatch` is listening to a bubble event. Further, as vincentriemer pointed out, `ancestorListening` should only be set true if a `ViewTarget` is listening to a capture event. Reviewed By: vincentriemer Differential Revision: D37423952 fbshipit-source-id: 2ed08038632677c24766bca6214dc00013fa2446