Skip to content

Commit

Permalink
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
Browse files Browse the repository at this point in the history
…o next
  • Loading branch information
claviska committed Nov 12, 2024
2 parents 8a3006d + 51473c6 commit 620edc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 620edc2

Please sign in to comment.