react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

How detect if the date is changed from editableDateInputs

Open gudapraveenkumar opened this issue 5 years ago • 1 comments

Currently when user changes the date from editableDateInputs or the calendar onChange event is triggered and with this one handler I cannot identify from where this change is triggered.

Screenshot 2021-02-10 at 19 19 48

<DateRange onChange={(item) => handleChange(item)} months={2} ranges={dateTimeRange} dateDisplayFormat={'yyyy-MM-dd HH:mm'} direction="horizontal" editableDateInputs={true} />

Is there any function or workaround to detect if the change is from editableDateInputs but not from the Calendar range selection

gudapraveenkumar avatar Feb 10 '21 17:02 gudapraveenkumar

Can confirm this doesn't work. No changes in dates are triggered when using the editableDateInputs :(

code-by-gijs avatar Mar 17 '21 09:03 code-by-gijs