react-multi-date-picker
react-multi-date-picker copied to clipboard
DatePanel does not work when minDate is set with multiple enabled
When a minDate is set and multiple enabled, the panel does not update.
return (
<DatePicker
multiple
values={values}
onChange={setValues}
plugins={[
<DatePanel />
]}
minDate={tomorrow}
sort
/>
)
UPDATE: this isn't an error with the date panel but with mindate & multiples. If I select mindate as the first selected date, the calendar behaves weirdly, for example the onChange and mapDays functions are not called.
Workaround: to get mindate to work with multiple dates, I have removed mindate and instead use the mapDays function to disable all dates that are smaller than tomorrow.
Here's a screenshot showing that if I select the mindate as first date, the input field is not correctly updated; but if I select any other date it works fine:
I have the same issue but wit max date