Skip to content

Commit ce7fcab

Browse files
Andrew LeeAndrew Lee
Andrew Lee
authored and
Andrew Lee
committed
prepublish
1 parent ace4142 commit ce7fcab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/react-slick.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ return /******/ (function(modules) { // webpackBootstrap
253253
}
254254
},
255255
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
256-
if (this.props.initialSlide != nextProps.initialSlide) {
257-
this.setState({ currentSlide: nextProps.initialSlide });
256+
if (this.props.slickGoTo != nextProps.slickGoTo) {
257+
this.setState({ currentSlide: nextProps.slickGoTo });
258258
}
259259
this.update(nextProps);
260260
},

0 commit comments

Comments
 (0)