Skip to content

Commit 39b6cf4

Browse files
committed
Prepare for publishing
1 parent 9f9d7d5 commit 39b6cf4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/components/Carousel.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,7 @@ var Carousel = function (_Component) {
314314
value: function componentWillReceiveProps(nextProps) {
315315
if (nextProps.selectedItem !== this.state.selectedItem) {
316316
this.updateSizes();
317-
this.setState({
318-
selectedItem: nextProps.selectedItem
319-
});
317+
this.moveTo(nextProps.selectedItem);
320318
}
321319

322320
if (nextProps.autoPlay !== this.props.autoPlay) {

0 commit comments

Comments
 (0)