Skip to content

Commit 6079953

Browse files
committed
change input value as empty string when no value set
1 parent a8dfef1 commit 6079953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/DateInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class DateInputInner extends Component<
358358
? this.state.inputValue
359359
: dateValue != null && mvalue.isValid()
360360
? mvalue.format(this.getInputValueFormat())
361-
: undefined;
361+
: '';
362362
const isOpened = typeof opened !== 'undefined' ? opened : this.state.opened;
363363
const formElemProps = { id, totalCols, cols, label, required, error };
364364
return (

0 commit comments

Comments
 (0)