Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
selectedDate: this.isRangeInput ? [] : null,
selectedDateFormatted: '',
typedValue: null,
};
this.setState(newState, () => {
onChange(event, { ...this.props, value: null });
});
return;
}
this.setState({
selectedDate: this.isRangeInput ? [] : null,
selectedDateFormatted: '',
typedValue: formatStringByPattern(formatString, typedValue),
});
};
selectedDate: this.isRangeInput ? [] : null,
selectedDateFormatted: '',
typedValue: null,
};
this.setState(newState, () => {
onDateChange(null);
});
return;
}
this.setState({
selectedDate: this.isRangeInput ? [] : null,
selectedDateFormatted: '',
typedValue: formatStringByPattern(formatString, typedValue),
});
};