diff --git a/src/pagination.js b/src/pagination.js index 6200ef3..608d93d 100644 --- a/src/pagination.js +++ b/src/pagination.js @@ -66,9 +66,7 @@ export default React.createClass({
{this.props.pageText} {showPageJump ? ( -
+
{ @@ -81,8 +79,13 @@ export default React.createClass({ }} value={this.state.page === '' ? '' : this.state.page + 1} onBlur={this.applyPage} + onKeyPress={e => { + if (e.which === 13 || e.keyCode === 13) { + this.applyPage() + } + }} /> - +
) : ( {page + 1} )} {this.props.ofText} {pages}