Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slickNext/slickPrev not working as expected #2166

Open
gtb104 opened this issue Jul 6, 2022 · 2 comments
Open

slickNext/slickPrev not working as expected #2166

gtb104 opened this issue Jul 6, 2022 · 2 comments

Comments

@gtb104
Copy link

gtb104 commented Jul 6, 2022

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

@MauriceAyasse
Copy link

This seems to be an issue which is already described in #1946. Additionaly there is an open PR for this which is currently open: #2029

@jason-liu22
Copy link

I think you can use beforeChange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants