From c57cdb75b5a3395ff98160f577f928c0350f2f1a Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 12 Nov 2024 11:08:57 -0500 Subject: [PATCH] backport SL-2260 --- src/components/carousel/carousel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/carousel/carousel.ts b/src/components/carousel/carousel.ts index b90b50a5c..048bcb491 100644 --- a/src/components/carousel/carousel.ts +++ b/src/components/carousel/carousel.ts @@ -376,10 +376,10 @@ export default class WaCarousel extends WebAwesomeElement { 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() {