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

Question: How do I dynamically change autoplay? The prop does not stop it #229

Closed
bakuryuthem0 opened this issue Jun 26, 2018 · 1 comment
Labels

Comments

@bakuryuthem0
Copy link

I have this carousel

<carousel :loop="true" :per-page="1" :autoplay="doAutoplay" :autoplay-timeout="4000" :pagination-enabled="false" :mouse-drag="false">
...Here are a bunch of slides
</carousel>
i have a button that toggle the doAutoplay for the autoplay prop, in the beginning it contains true. the problem is, when the doAutoplay is toggle, the autoplay does not stop, but i can see the prop's value in the component have changed.

I am using "vue-carousel": "^0.8.1".

@quinnlangille
Copy link
Member

quinnlangille commented Jun 26, 2018

Hey @bakuryuthem0, mind trying this with 0.9.0? We just released it, and it has a reset feature on hover that might make this work. Otherwise, it looks like it'll require a custom watcher

@quinnlangille quinnlangille changed the title Dinamic changing autoplay does not stop it Question: Dynamically changing autoplay prop does not stop it Jun 26, 2018
@quinnlangille quinnlangille changed the title Question: Dynamically changing autoplay prop does not stop it Question: How do I dynamically change autoplay? The prop does not stop it Jun 27, 2018
@csmoakpax8 csmoakpax8 mentioned this issue Dec 11, 2018
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants