Topic: Carousel does not honor an interval of \"false\"

rscs priority asked 6 years ago


Passing an interval of "false" causes the carousel to constantly switch slides.  It's probably reverting to the setInterval() default of 10ms. The component does not check if the interval value is false anywhere.
<carousel v-bind:interval="false" slide showControls>
...
</carousel>

Jakub Strebeyko staff answered 6 years ago


Hey rscs, Huge thanks for pointing it out! It is already fixed, but will get to production only in two weeks or so. For anyone wondering how to change this behavior before the next release, I suggest adding a simple
      if (this.interval) {...}
check around autoSlide() method, Carousel line 130. With Best Regards, Kuba

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: 4.6.0
  • Device: Desktop
  • Browser: All browsers
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No