Skip to content

Commit c5c4d20

Browse files
committed
fix failed test
1 parent cc33501 commit c5c4d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const handleValueAttr = (children) => {
1515
child = {...child};
1616
child.props = {...child.props}
1717

18-
if (['input', 'textarea', 'select'].indexOf(child.type) >= 0 && Object.hasOwn(child.props, 'value')) {
18+
if (['input', 'textarea', 'select'].indexOf(child.type) >= 0 && child.props.hasOwnProperty('value')) {
1919
child.props.defaultValue = child.props.value;
2020
delete child.props.value;
2121
}

0 commit comments

Comments
 (0)