Skip to content

slickNext/slickPrev not working as expected聽#2166

Description

@gtb104

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

Activity

  1. MauriceAyasse commented on Jul 14, 2022

    @MauriceAyasse

    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

  2. jason-liu22 commented on Aug 19, 2022

    @jason-liu22

    I think you can use beforeChange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions