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 cc33501 commit c5c4d20Copy full SHA for c5c4d20
src/index.js
@@ -15,7 +15,7 @@ const handleValueAttr = (children) => {
15
child = {...child};
16
child.props = {...child.props}
17
18
- if (['input', 'textarea', 'select'].indexOf(child.type) >= 0 && Object.hasOwn(child.props, 'value')) {
+ if (['input', 'textarea', 'select'].indexOf(child.type) >= 0 && child.props.hasOwnProperty('value')) {
19
child.props.defaultValue = child.props.value;
20
delete child.props.value;
21
}
0 commit comments