Skip to content

Commit

Permalink
Issue #256: calling onItemClick when Carousel has one child (code rev…
Browse files Browse the repository at this point in the history
…iew comment fixed)
  • Loading branch information
oborisev authored and oborisev committed Apr 17, 2019
1 parent e3d0191 commit 04e3f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Carousel.js
Expand Up @@ -300,7 +300,7 @@ class Carousel extends Component {
}

handleClickItem = (index, item) => {
if (Children.count(this.props.children) <= 0) {
if (Children.count(this.props.children) == 0) {
return;
}

Expand Down

0 comments on commit 04e3f4e

Please sign in to comment.