Skip to content

Unable to setOption "useAutoplayToggleButton" #107

@jovilog

Description

@jovilog

On the demo site throwing something like this into the console works as expected:

$(".autoplay").slick("setOption", "slidesToShow", 1, true);

However, using the newer setting "useAutoplayToggleButton" does not remove the play/pause button.

$(".autoplay").slick("setOption", "useAutoplayToggleButton", false, true);

The value is updated, checked with $(".autoplay").slick("getOption", "useAutoplayToggleButton");, but like said, the play/pause button is not removed.

How would I do that? Or shouldn't this be working? Any help on this would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions