-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-web: isImmediatePropagationStopped is not a function #7259
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Are you able to solve this @awinograd ? |
I applied the following patch with
|
Thanks for the suggestion @awinograd ! |
I got mine working using this snippet
|
@awinograd care to submit a PR for this? Seems like react-native-web basically implements a lot of the same type of events that we do, but it only implements |
|
Yeah, everyone is basically following jQuery's lead here hehe |
I'm happy to open a PR. Though I do agree with @necolas in that this event emulation is pretty fragile. Unfortunately I dont have much to contribute towards a better solution in that regard. |
It's been working (mostly) great for us for years, though, yeah, it's definitely not great. |
Thanks! |
The event "polyfill" detection
video.js/src/js/utils/events.js
Line 107 in 4238f5c
doesn't seem to be compatible with react-native-web's event system.
isPropagationStopped
is defined on MouseEvents (https://github.com/necolas/react-native-web/blob/66d01734ce3ffcfea61e05aa1b45015658b3f2af/packages/react-native-web/src/modules/createEventHandle/index.js#L69) but isImmediatePropagationStopped is not which causes the errorisImmediatePropagationStopped is not a function
to be thrown here:video.js/src/js/utils/events.js
Line 304 in 32630d9
The text was updated successfully, but these errors were encountered: