From ea479dbf4d4f658195a73f8ca183b1b9a52e5679 Mon Sep 17 00:00:00 2001 From: lilaja Date: Mon, 23 Feb 2015 19:46:54 +0100 Subject: [PATCH] [fixed] show carousel controls if wrap is enabled Update Carousel.jsx Render carousel controls on this.props.wrap = true Update Carousel.jsx Render carousel controls on this.props.wrap = true --- src/Carousel.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Carousel.jsx b/src/Carousel.jsx index 421fa494ce..85f335fe63 100644 --- a/src/Carousel.jsx +++ b/src/Carousel.jsx @@ -173,7 +173,7 @@ var Carousel = React.createClass({ }, renderControls: function () { - if (this.props.wrap) { + if (!this.props.wrap) { var activeIndex = this.getActiveIndex(); var count = ValidComponentChildren.numberOf(this.props.children); @@ -286,4 +286,4 @@ var Carousel = React.createClass({ } }); -module.exports = Carousel; \ No newline at end of file +module.exports = Carousel;