Skip to content

Commit

Permalink
fix(element): fix not working correctly injectStylesUrls
Browse files Browse the repository at this point in the history
fixes #6662
  • Loading branch information
nolimits4web committed May 15, 2023
1 parent 45f8d4a commit 6a50d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/element/swiper-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SwiperContainer extends ClassToExtend {
}

this.cssLinks().forEach((url) => {
const linkExists = document.querySelector(`link[href="${url}"]`);
const linkExists = this.shadowEl.querySelector(`link[href="${url}"]`);
if (linkExists) return;
const linkEl = document.createElement('link');
linkEl.rel = 'stylesheet';
Expand Down

0 comments on commit 6a50d45

Please sign in to comment.