We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
injectStylesUrls
1 parent 45f8d4a commit 6a50d45Copy full SHA for 6a50d45
src/element/swiper-element.js
@@ -76,7 +76,7 @@ class SwiperContainer extends ClassToExtend {
76
}
77
78
this.cssLinks().forEach((url) => {
79
- const linkExists = document.querySelector(`link[href="${url}"]`);
+ const linkExists = this.shadowEl.querySelector(`link[href="${url}"]`);
80
if (linkExists) return;
81
const linkEl = document.createElement('link');
82
linkEl.rel = 'stylesheet';
0 commit comments