Allow independent start date / end date updates when working with two fields
When working with two fields for start/end dates, the user always has to select both dates when opening the datepicker. It would be a better user experience to let them edit only the start date or the end date, depending on which input they trigger the datepicker from.
@fglueck Could you solve this? I am facing the same problem right now.
I have the same problem. Is there already a solution?
Is there already a solution?
Found a work around solution for this.
$('#date-range-second-field').focus(function(){
var start = $('#date-range-first-field').val();
$('#two-inputs').data('dateRangePicker').clear();
$('#two-inputs').data('dateRangePicker').setStart(start);
$('#date-range-first-field').val(start);
});
Do you have a jsFiddle that can demonstrative this?
As demonstrated by @aaronleslie, there is a workaround. However, it depends on the focus event, which can cause edge cases. It also doesn't fix the case with the end date being set and updating the start date (although a similar workaround can be made for that case as well). I'm keeping this issue open as a feature request.