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

Event.path is deprecated #5925

Closed
5 of 6 tasks
younes-alouani opened this issue Jul 31, 2022 · 1 comment
Closed
5 of 6 tasks

Event.path is deprecated #5925

younes-alouani opened this issue Jul 31, 2022 · 1 comment

Comments

@younes-alouani
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://swiperjs.com/demos/310-thumbs-gallery-loop/core

Bug description

Warning in shown in google devtools issues :
Event.path is deprecated and will be removed. Please use Event.composedPath() instead.

Expected Behavior

No response

Actual Behavior

No response

Swiper version

8.3.2

Platform/Target and Browser Versions

Chrome : Version 103.0.5060.134

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
@dijkermans
Copy link

https://chromestatus.com/feature/5726124632965120

It will be removed in version 109. Current version: 103.

Existing pages may use the following polyfill to keep functions:

if (!Event.prototype.path) {
Object.defineProperty(Event.prototype, 'path', {
get() { return this.composedPath(); }
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants