Skip to content

Commit

Permalink
[fixed] show carousel controls if wrap is enabled
Browse files Browse the repository at this point in the history
Update Carousel.jsx

Render carousel controls on this.props.wrap = true

Update Carousel.jsx

Render carousel controls on this.props.wrap = true
  • Loading branch information
lilaja authored and lo1tuma committed Mar 24, 2015
1 parent 7527953 commit ea479db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Carousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -286,4 +286,4 @@ var Carousel = React.createClass({
}
});

module.exports = Carousel;
module.exports = Carousel;

0 comments on commit ea479db

Please sign in to comment.