Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const PickerInput = ({ variant, selectedDay, locale, handleOverlayToggle, isDisabled, isClearable, clearValue, inputFormat, ...props }) =>(
handleOverlayToggle(true) }
className="picker-input"
disabled={ isDisabled }
/>
{ isClearable && selectedDay && (
) }
handleOverlayToggle(true) }>
handleDayClick = (day, modifiers, e) => {
this.props.onSelect(moment(day).format(Store.current.dateFormat));
this.setState({
selectedDay: formatDate(new Date(day), 'YYYY-MM-DD'),
month: day,
expanded: false,
});
this.textInput.blur();
};