Skip to content

Commit

Permalink
fix(event): event polyfill detection compatibility with react-native-…
Browse files Browse the repository at this point in the history
…web (#7286)

Fixes #7259
  • Loading branch information
awinograd authored Jun 24, 2021
1 parent 4cecbda commit a221be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function fixEvent(event) {
// But native events return true for stopPropagation, but don't have
// other expected methods like isPropagationStopped. Seems to be a problem
// with the Javascript Ninja code. So we're just overriding all events now.
if (!event || !event.isPropagationStopped) {
if (!event || !event.isPropagationStopped || !event.isImmediatePropagationStopped) {
const old = event || window.event;

event = {};
Expand Down

0 comments on commit a221be1

Please sign in to comment.