I have different options on a dropdown: Today, Yesterday, Custom, etc.
Custom. customCloseIcon by toggling state. I want the date picker to "callback" my function on clearDates event, i.e. onClearDates could be passed as a prop to the date-picker.
Accepting a PR for this?
What is it you want to do onClearDates? You could listen to the onDateChange event to know if your date has been cleared.
Yeah I think @erin-doyle's recommendation is on point. You can check if startDate and endDate have both been set to null in onDateChange and do whatever it is you need to do then. I'm not sure if this necessitates a new prop.
Most helpful comment
Yeah I think @erin-doyle's recommendation is on point. You can check if
startDateandendDatehave both been set to null inonDateChangeand do whatever it is you need to do then. I'm not sure if this necessitates a new prop.