You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the initialPageIndex prop is set to anything over 0, while the Carousel's content renders the correct page, the Dots always show the first Dot as selected.
If the
initialPageIndex
prop is set to anything over 0, while the Carousel's content renders the correct page, the Dots always show the first Dot as selected.Looks like the
currentPageIndex
in the Carousel is not set on mount.https://github.com/vadimkorr/svelte-carousel/blob/main/src/components/Carousel/Carousel.svelte#L204
Setting the
currentPageIndex
to matchinitialPageIndex
on mount seems to fix it, but I don't know if that is the appropriate solution!The text was updated successfully, but these errors were encountered: