Skip to content

Commit 43aacb9

Browse files
committed
Merge pull request #25 from jamesmorgan/NumberInputTypes
Expanding input types
2 parents a4fb3ea + b116718 commit 43aacb9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ pids
1818
/reports/
1919

2020
/.eslintcache
21+
22+
.idea/
23+

src/Component.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export const DebounceInput = React.createClass({
88
onChange: React.PropTypes.func.isRequired,
99
onKeyDown: React.PropTypes.func,
1010
onBlur: React.PropTypes.func,
11-
value: React.PropTypes.string,
11+
value: React.PropTypes.oneOfType([
12+
React.PropTypes.string,
13+
React.PropTypes.number
14+
]),
1215
minLength: React.PropTypes.number,
1316
debounceTimeout: React.PropTypes.number,
1417
forceNotifyByEnter: React.PropTypes.bool,

0 commit comments

Comments
 (0)