Skip to content

Commit 6ec44e5

Browse files
committed
update proptypes
1 parent 7b949f3 commit 6ec44e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/LazyInput.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ var React = require('react');
22

33
var LazyInput = React.createClass({
44
displayName: "LazyInput",
5-
propTypes: {
6-
type: React.PropTypes.string, // ['text'] type of input/textarea
5+
propTypes: { // ['text'] or [CustomInput] type of rendered input
6+
type: React.PropTypes.oneOfType([
7+
React.PropTypes.string,
8+
React.PropTypes.func
9+
]),
710
lazyLevel: React.PropTypes.number // [1000] number of ms to wait before responding to changes in prop.value
811
// note: passes through everything but lazyLevel
912
},

0 commit comments

Comments
 (0)