-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unable to preventDefault inside passive event listener #1650
Comments
The problem seems to be caused by touch events that are passed "trough" the modal to the underlying carousel component. The whole carousel seems to react on swipes although it is covered by the modal. |
I had this error message. The solution for me was to use the CSS |
thanks, this solved the problem |
…e event listener` close #27927 akiran/react-slick#1650
…e event listener` (#27957) close #27927 akiran/react-slick#1650
Downgrading to React@16.14.0 fixed the issue. |
Adding "touch-action:pan-y;" didn't worked for me, still having "Unable to preventDefault inside passive event listener invocation." error on console. Any solutions or suggestions ? |
@turelmert Would you like to send a PR with a fix? |
Sure, let me try. |
same problem like @turelmert . |
@swartex thanks your solution solves my problem |
First of all, thanks for porting Slick to React, highly appreciated!
When executing some event handlers inside my slides, I am getting this error:
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
The error occurs in method
swipeMove
here:https://github.com/akiran/react-slick/blob/master/src/utils/innerSliderUtils.js#L412
This only happens if I wrap these components with the slick carousel and breaks the functionality of the components.
Any idea what might cause this?
One thing to notice: it happens if the slide contains a React Bootstrap Modal and the event is called from within such a modal.
The text was updated successfully, but these errors were encountered: