Closed kfirba closed 5 years ago
Hello there,
Apparently, it seems like dayjs treat null as an invalid date.
There is two way to init date range :
dates: undefined
or
dates: { start: undefined, end: undefined }
@mathieustan Alright. What if we turn null
to undefined
in the component itself instead of passing the raw value to dayjs? Are there any downsides to transforming null
to undefined
just before we pass the values to dayjs or when we accept the prop?
Closed. Done in v0.2.0
It's me again,
Passing
null
as start/end values in range-mode (maybe even in single mode, haven't tested) causes errors.Surprisingly enough, changing the values to
undefined
solves the problem. I think this is a bug andnull
should be treated likeundefined
.