We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1de10d + 3f037d5 commit 6b87e5cCopy full SHA for 6b87e5c
index.js
@@ -21,12 +21,13 @@ function asyncInput (ctor) {
21
},
22
23
render: function () {
24
- return this.transferPropsTo(
25
- ctor({
+ return React.createElement(
+ ctor,
26
+ React.__spread({}, this.props, {
27
value: this.state.value,
- onChange: this.onChange,
28
- children: this.props.children
29
- })
+ onChange: this.onChange
+ }),
30
+ this.props.children
31
)
32
}
33
})
package.json
@@ -3,8 +3,8 @@
3
"version": "0.9.0",
4
"description": "wrap React inputs so that asynchrous updates don't cause the cursor to jump",
5
"main": "index.js",
6
- "dependencies": {
7
- "react": "~0.9.0"
+ "peerDependencies": {
+ "react": ">=0.12.0"
8
9
"devDependencies": {
10
"tape": "~2.3.2"
0 commit comments