Two date inputs using daterangepicker and jQuery. If the first date gets an update, the second date will also suffer an update if the range of the first date is higher than the second one.
// this.dateRangePicker('#start_at_datepicker', '#start_at_form');
// this.dateRangePicker('#end_at_datepicker', '#end_at_form', true);
dateRangePicker(datepickerInputId, dateInputId, minDate = false) {
let input = document.querySelector(dateInputId);