Skip to content

Commit 6a50d45

Browse files
committed
fix(element): fix not working correctly injectStylesUrls
fixes #6662
1 parent 45f8d4a commit 6a50d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/element/swiper-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class SwiperContainer extends ClassToExtend {
7676
}
7777

7878
this.cssLinks().forEach((url) => {
79-
const linkExists = document.querySelector(`link[href="${url}"]`);
79+
const linkExists = this.shadowEl.querySelector(`link[href="${url}"]`);
8080
if (linkExists) return;
8181
const linkEl = document.createElement('link');
8282
linkEl.rel = 'stylesheet';

0 commit comments

Comments
 (0)