diff --git a/src/index.jsx b/src/index.jsx index 743e11a..0bcade2 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -327,7 +327,7 @@ class FlipPage extends Component { } gotoPage(page) { - if (page > 0 && page < this.props.children.length) { + if (page >= 0 && page < this.props.children.length) { this.setState({ page }); } else { throw new RangeError('`page` argument is out of bounds.');