mirror of
https://github.com/videojs/video.js.git
synced 2025-07-07 01:07:13 +02:00
fix(event): event polyfill detection compatibility with react-native-web (#7286)
Fixes #7259
This commit is contained in:
@ -104,7 +104,7 @@ export function fixEvent(event) {
|
|||||||
// But native events return true for stopPropagation, but don't have
|
// But native events return true for stopPropagation, but don't have
|
||||||
// other expected methods like isPropagationStopped. Seems to be a problem
|
// other expected methods like isPropagationStopped. Seems to be a problem
|
||||||
// with the Javascript Ninja code. So we're just overriding all events now.
|
// 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;
|
const old = event || window.event;
|
||||||
|
|
||||||
event = {};
|
event = {};
|
||||||
|
Reference in New Issue
Block a user