We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca61204 commit 1b45e4bCopy full SHA for 1b45e4b
src/inner-slider.js
@@ -387,7 +387,11 @@ export class InnerSlider extends React.Component {
387
clearTimeout(this.animationEndCallback);
388
}
389
this.setState(state, () => {
390
- asNavFor && asNavFor.innerSlider.slideHandler(index);
+ // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode
391
+ if (asNavFor && this.asNavForIndex !== index) {
392
+ this.asNavForIndex = index;
393
+ asNavFor.innerSlider.slideHandler(index);
394
+ }
395
if (!nextState) return;
396
this.animationEndCallback = setTimeout(() => {
397
const { animating, ...firstBatch } = nextState;
0 commit comments