The slickPrev() and slickNext() functions do not behave as expected if initialSlide is set to something other than 0, and infinite is false. This behavior is only seen the first time the 馃憟 or 馃憠 button is pressed (i.e. after a page refresh).
With an initialSlide of 2, the buttons behave as follows:
- Previous - Goes to slide 0
- Next - Goes to slide 1
Note: goTo() still works as expected
CodeSandbox example
The
slickPrev()andslickNext()functions do not behave as expected ifinitialSlideis set to something other than0, andinfiniteisfalse. This behavior is only seen the first time the 馃憟 or 馃憠 button is pressed (i.e. after a page refresh).With an
initialSlideof2, the buttons behave as follows:Note:
goTo()still works as expectedCodeSandbox example