Skip to content

Commit ea479db

Browse files
lilajalo1tuma
authored andcommittedMar 24, 2015
[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
1 parent 7527953 commit ea479db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎src/Carousel.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ var Carousel = React.createClass({
173173
},
174174

175175
renderControls: function () {
176-
if (this.props.wrap) {
176+
if (!this.props.wrap) {
177177
var activeIndex = this.getActiveIndex();
178178
var count = ValidComponentChildren.numberOf(this.props.children);
179179

@@ -286,4 +286,4 @@ var Carousel = React.createClass({
286286
}
287287
});
288288

289-
module.exports = Carousel;
289+
module.exports = Carousel;

0 commit comments

Comments
 (0)