Open daweto opened 2 years ago
@dweinstein1 This can be easily solved by passing same value to both, minDate
and selected
, properties.
@shreekeshmurkar this is not possible to do when using the isClearable
prop, so the work-around doesn't work for me. When using isClearable={true}
selected
needs to be able to be set null
in order to clear the value.
I found another work-around for the case where isClearable
is set true
- just set openToDate
and minDate
to the same value.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Describe the bug If a
minDate
on the future is given and alsoshowTimeSelect
is set totrue
, the calendar will open on theminDate
but when selecting time, the returned value will be the current date with the time selected, not theminDate
with the time selected as one would think because when opening the calendar, theminDate
was selected.To Reproduce Steps to reproduce the behavior:
DatePicker
with aminDate
set to the future andshowTimeSelect
DatePicker
and just select the time.Expected behavior A clear and concise description of what you expected to happen.
When opening the
DatePicker
and just selecting the time, it should return theminDate
plus theselectedTime
.Screenshots
Opening the calendar:
After selecting just the time:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.