Skip to content

Commit

Permalink
fix the error on controlled input
Browse files Browse the repository at this point in the history
  • Loading branch information
mollfpr committed Nov 2, 2022
1 parent bfcdb17 commit 5d21756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DatePicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DatePicker extends React.Component {
*/
setDate(text) {
if (!text) {
this.props.onInputChange(null);
this.props.onInputChange('');
return;
}

Expand Down

0 comments on commit 5d21756

Please sign in to comment.