rc-pagination
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -78,3 +78,3 @@ 'use strict'; | ||
'跳至', | ||
React.createElement('input', { type: 'text', value: props.current, onChange: this._quickGo }), | ||
React.createElement('input', { type: 'text', defaultValue: props.current, onChange: this._quickGo, onKeyUp: this._quickGo }), | ||
'页' | ||
@@ -99,3 +99,10 @@ ); | ||
value: function _quickGo(evt) { | ||
this.props.quickGo(Number(evt.target.value)); | ||
var ENTER_KEY = 13; | ||
var val = Number(evt.target.value); | ||
this.setState({ value: val }); | ||
if (evt.keyCode === ENTER_KEY) { | ||
this.props.quickGo(val); | ||
} | ||
} | ||
@@ -102,0 +109,0 @@ }]); |
{ | ||
"name": "rc-pagination", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "pagination ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24805
567