mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
fix(carousel): out of order slides when inside sl-resize-observer (#2260)
* fix: sync slides after complete initialization * chore: leftover
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user