Skip to content

Commit a221be1

Browse files
authoredJun 24, 2021
fix(event): event polyfill detection compatibility with react-native-web (#7286)
Fixes #7259
1 parent 4cecbda commit a221be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/js/utils/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function fixEvent(event) {
104104
// But native events return true for stopPropagation, but don't have
105105
// other expected methods like isPropagationStopped. Seems to be a problem
106106
// with the Javascript Ninja code. So we're just overriding all events now.
107-
if (!event || !event.isPropagationStopped) {
107+
if (!event || !event.isPropagationStopped || !event.isImmediatePropagationStopped) {
108108
const old = event || window.event;
109109

110110
event = {};

0 commit comments

Comments
 (0)