Skip to content

Commit 54bfb62

Browse files
author
Dustyn Blackmore
committed
Updated input.js
Avoid uncontrolled input: Added default state value to '' instead of undefined
1 parent 8f0d62d commit 54bfb62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Input extends Component {
1111
initialValue: this.props.initialValue || undefined,
1212
isValid: false,
1313
justChanged: false,
14-
value: this.props.value || undefined,
14+
value: this.props.value || '',
1515
valueMask: this.props.valueMask || undefined,
1616
};
1717

0 commit comments

Comments
 (0)