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.
1 parent 7b949f3 commit 6ec44e5Copy full SHA for 6ec44e5
src/LazyInput.jsx
@@ -2,8 +2,11 @@ var React = require('react');
2
3
var LazyInput = React.createClass({
4
displayName: "LazyInput",
5
- propTypes: {
6
- type: React.PropTypes.string, // ['text'] type of input/textarea
+ propTypes: { // ['text'] or [CustomInput] type of rendered input
+ type: React.PropTypes.oneOfType([
7
+ React.PropTypes.string,
8
+ React.PropTypes.func
9
+ ]),
10
lazyLevel: React.PropTypes.number // [1000] number of ms to wait before responding to changes in prop.value
11
// note: passes through everything but lazyLevel
12
},
0 commit comments