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
Describe the bug
I have a carousel which is created from a list of objects (which only stores 2 strings) stored via pinia state management. When loading the page the carousel is in-between slides and after about a second or so it snaps to the correct modelValue. I've tried setting the modelValue to a static integer but the carousel still initializes in-between slides and snaps back.
When printing onMount the modelValue is set correctly but the currentSlide is undefined. Additionally I've confirmed my pinia objects are correct and non-null.
// pinia values on mount for example// piniaStore.options = [{name: "option 1", date: "date 1"}, {name: "option 2", date: "date 2"}, etc.];// piniaStore.initialSlide = 0;
Expected behavior
The carousel will be initialized with the first slide being the one set as modelValue and currentSlide will be set to be equal to modelValue
Desktop (please complete the following information):
OS: Windows
Browser: chrome
Version: 127.0.6533.100
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a carousel which is created from a list of objects (which only stores 2 strings) stored via pinia state management. When loading the page the carousel is in-between slides and after about a second or so it snaps to the correct
modelValue
. I've tried setting themodelValue
to a static integer but the carousel still initializes in-between slides and snaps back.When printing onMount the
modelValue
is set correctly but thecurrentSlide
isundefined
. Additionally I've confirmed my pinia objects are correct and non-null.Thanks for any help 😄!
To Reproduce
Expected behavior
The carousel will be initialized with the first slide being the one set as
modelValue
andcurrentSlide
will be set to be equal tomodelValue
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: