We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4fb3ea + b116718 commit 43aacb9Copy full SHA for 43aacb9
.gitignore
@@ -18,3 +18,6 @@ pids
18
/reports/
19
20
/.eslintcache
21
+
22
+.idea/
23
src/Component.js
@@ -8,7 +8,10 @@ export const DebounceInput = React.createClass({
8
onChange: React.PropTypes.func.isRequired,
9
onKeyDown: React.PropTypes.func,
10
onBlur: React.PropTypes.func,
11
- value: React.PropTypes.string,
+ value: React.PropTypes.oneOfType([
12
+ React.PropTypes.string,
13
+ React.PropTypes.number
14
+ ]),
15
minLength: React.PropTypes.number,
16
debounceTimeout: React.PropTypes.number,
17
forceNotifyByEnter: React.PropTypes.bool,
0 commit comments