Skip to content

Commit

Permalink
Merge pull request #1423 from celdrake/master
Browse files Browse the repository at this point in the history
Fixing issue with asNavFor not detecting all slide changes
  • Loading branch information
akiran authored Apr 15, 2019
2 parents c8d2426 + 0e348f6 commit 2b7e78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inner-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ export class InnerSlider extends React.Component {
onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);
this.setState(state, () => {
asNavFor &&
asNavFor.innerSlider.state.currentSlide !== currentSlide &&
asNavFor.innerSlider.state.currentSlide !== this.state.currentSlide &&
asNavFor.innerSlider.slideHandler(index);
if (!nextState) return;
this.animationEndCallback = setTimeout(() => {
Expand Down

0 comments on commit 2b7e78c

Please sign in to comment.