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 62e5322 commit d7b820aCopy full SHA for d7b820a
components/date_picker/DatePicker.js
@@ -45,7 +45,7 @@ class DatePicker extends React.Component {
45
const { inputClassName, value } = this.props;
46
const inputFormat = this.props.inputFormat || time.formatDate;
47
const date = Object.prototype.toString.call(value) === '[object Date]' ? value : undefined;
48
- const formattedDate = date === undefined ? inputFormat(value) : '';
+ const formattedDate = date === undefined ? '' : inputFormat(value);
49
50
return (
51
<div data-react-toolbox='date-picker'>
0 commit comments