Date Range Picker does not work Cancel

Is this a bug?
1

When you click Cancel in the Date Range Picker module, the selected dates are not reset.

That’s not a bug. The cancel button is supposed to close the dialog or in case new date range is selected - to not apply it. It’s not supposed to clear the input.

1 Like

In order to clear the input value, when cancel is clicked - use the oncancel event like:

dmx-on:cancel="date1.setValue('')"

where date1 is the id of your date picker input.

Yes, I just applied it and it works to clear the input values. The problem is that the selected dates are not reset in the Date Range Picker modal window… How can I get around this point?
9

I see nothing related to this in the component documentation: https://www.daterangepicker.com/#options
I don’t think such a thing is possible with this component.