react-slick
Advanced tools
Comparing version 0.9.0-rc2 to 0.9.0
@@ -84,2 +84,5 @@ 'use strict'; | ||
componentWillReceiveProps: function componentWillReceiveProps(nextProps) { | ||
if (this.props.slickGoTo != nextProps.slickGoTo) { | ||
this.setState({ currentSlide: nextProps.slickGoTo }); | ||
} | ||
this.update(nextProps); | ||
@@ -86,0 +89,0 @@ }, |
{ | ||
"name": "react-slick", | ||
"version": "0.9.0-rc2", | ||
"version": "0.9.0", | ||
"description": " React port of slick carousel", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
# react-slick | ||
Carousel component built with React. It is a react port of [slick carousel](http://kenwheeler.github.io/slick/) | ||
Checkout react-slick@0.9.0-rc1 for React 0.14 support | ||
For React 0.13 or below version support, please stick with react-slick@0.8 | ||
@@ -93,2 +93,3 @@ # Road to 1.0 | ||
| beforeChange | function | callback function called before the current index changes | Yes | | ||
| slickGoTo | int | go to the specified slide number | ||
@@ -95,0 +96,0 @@ ### Development |
@@ -55,2 +55,5 @@ 'use strict'; | ||
componentWillReceiveProps: function(nextProps) { | ||
if (this.props.slickGoTo != nextProps.slickGoTo) { | ||
this.setState({currentSlide: nextProps.slickGoTo}); | ||
} | ||
this.update(nextProps); | ||
@@ -57,0 +60,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1044089
20755
106