You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the Carousel, we can deactivate the autoplay by setting the interval props to false. However, this is not taken into account directly but only after one last automatic transition to the next slide. I think this is due to the the following piece of code in carousel.js :
componentDidUpdate(prevProps, prevState) {
if (prevState.activeIndex === this.state.activeIndex) return;
this.setInterval();
}
An additional check between prevState.interval and this.state.interval should be perform before returning without setting the interval, no?
What should be happening?
Autoplay should stop as soon as the interval is set to false
Steps to reproduce issue
Load the component with an interval
Switch the interval to false
The text was updated successfully, but these errors were encountered:
MariusJam
added a commit
to MariusJam/reactstrap
that referenced
this issue
Jan 26, 2024
carousel
#8.10.1
#17.0.2
#4.5.2
What is happening?
With the Carousel, we can deactivate the autoplay by setting the interval props to
false
. However, this is not taken into account directly but only after one last automatic transition to the next slide. I think this is due to the the following piece of code in carousel.js :An additional check between prevState.interval and this.state.interval should be perform before returning without setting the interval, no?
What should be happening?
Autoplay should stop as soon as the interval is set to false
Steps to reproduce issue
The text was updated successfully, but these errors were encountered: