Skip to content
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 invocation #7436

Open
5 of 6 tasks
szmazhr opened this issue Apr 2, 2024 · 0 comments
Open
5 of 6 tasks

Unable to preventDefault inside passive event listener invocation #7436

szmazhr opened this issue Apr 2, 2024 · 0 comments
Labels

Comments

@szmazhr
Copy link

szmazhr commented Apr 2, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/github/szmazhr/swiper-issue-prevent-default/main

Bug description

getting error Unable to preventDefault inside passive event listener invocation in console when using drawer from mui and swiper slider together.

How to reproduce

  1. open the codesandbox link, everything is there
  2. try to open the drawer from any side in mobile view (by swiping, not by clicking)

Expected Behavior

It should not throw the error.

Actual Behavior

It is throwing errors

Swiper version

11.1.0

Platform/Target and Browser Versions

Brave Version 1.64.113 Chromium: 123.0.6312.86 (Official Build) (64-bit)

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@szmazhr szmazhr added the React label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant