This commit is contained in:
Cory LaViska
2024-11-12 11:08:07 -05:00

View File

@@ -381,10 +381,10 @@ export default class SlCarousel extends ShoelaceElement {
this.createClones();
}
this.synchronizeSlides();
// Because the DOM may be changed, restore the scroll position to the active slide
this.goToSlide(this.activeSlide, 'auto');
this.synchronizeSlides();
}
private createClones() {