Open pelomedusa opened 8 months ago
fixed in release 4.3.6
@bishoymakkar unfortunately it looks like the bug is still present in 4.3.6.
fixed in release 4.3.7 confirmed
At the moment with version 4.3.7 it is still present. After putting some logs on the DatePickerAndroid.js file it shows the following
Date { NaN }
I'm using the Date Picker like this:
<DatePicker
modal
locale={ 'es' }
minimumDate={ new Date() }
mode="date"
open={ open2 }
date={ new Date(input_date_visit) }
onConfirm={ date => {
setOpen2(false)
dispatch(setDateVisit(date))
} }
onCancel={ () => {
setOpen2(false)
} }
/>
and the functions inside the DatePickerAndroid.js file that gets the error are: _date()
and _minimumDate()
and that's because both uses the _toIsoWithTimeZoneOffset()
.
I confirmed that input_date_visit
it is not a null value on the logic of my component, so that's an unexpected behavior from the package to get aDate { NaN }
on the function.
Hope this helps.
Describe the bug On Android, setting the
mode
attribute todatetime
and themaximumDate
tonew Date("2024-12-30")
, the Datepicker opens with a minimum date of June 30 2024The bug might be related to #670 but was not fixed by #740.
Expected behavior The
minimumDate
attribute is not used so the date picker should open to the current date without a minimumTo Reproduce Add example code that reproduces the behavior.
Smartphone (please complete the following information):