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 ace4142 commit ce7fcabCopy full SHA for ce7fcab
dist/react-slick.js
@@ -253,8 +253,8 @@ return /******/ (function(modules) { // webpackBootstrap
253
}
254
},
255
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
256
- if (this.props.initialSlide != nextProps.initialSlide) {
257
- this.setState({ currentSlide: nextProps.initialSlide });
+ if (this.props.slickGoTo != nextProps.slickGoTo) {
+ this.setState({ currentSlide: nextProps.slickGoTo });
258
259
this.update(nextProps);
260
0 commit comments