Closed leocristofani closed 4 years ago
Did you managed to fix this, I'm experiencing the same problem.
Thanks
Ran into the same issue . Hoping for a solution .
Guys try this. Its working for me.
$('#date_range').data('daterangepicker').singleDatePicker = false; //for double calendar
$('#date_range').data('daterangepicker').singleDatePicker = true; // for single calendar
closing this due to inactivity. please re-open if this is still an issue in v6.0.0 or greater
I need to set singleDatePicker dynamically but when I switch "singleDatePicker" between true and false, it does NOT update the dropdown between single and double calendar. Any idea how to fix this?
`<DateRangePicker name={name} startDate={startDate} endDate={endDate} className="form-control" onApply={applyHandler(onChange)} locale={{ format: 'YYYY-MM-DD' }} singleDatePicker
Thanks for this component!