Skip to content

Commit

Permalink
fix(core): set isElement on swiper-containers only (#6870)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanholzapfel committed Jul 25, 2023
1 parent bf29843 commit 2f61fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.mjs
Expand Up @@ -485,7 +485,7 @@ class Swiper {
}

el.swiper = swiper;
if (el.parentNode && el.parentNode.host) {
if (el.parentNode && el.parentNode.host && el.parentNode.host.nodeName === 'SWIPER-CONTAINER') {
swiper.isElement = true;
}

Expand Down

0 comments on commit 2f61fda

Please sign in to comment.