I am trying to set the maxDate in a range selection dynamically based on the selected start date. But the calendar just closes after the start date selection since it has to