Open sharucodes opened 1 year ago
You can use the defaultDate property :)
When i set the deafultDate property to false it shows current date when the component is mounted.
Try to set it as null it should be either Date | null
I still get todays date when the component is mounted.
I want it to be like below. That's when I press clear.
I still get todays date when the component is mounted.
I want it to be like below. That's when I press clear.
It works, but another error occurs: Types of property 'defaultDate' are incompatible. Type 'null' is not assignable to type 'Date | undefined'.
It's not working on me either. I'd already set defaultDate
to null | undefined | ''
but it still have value on previous selected date. I think this plugin cant programatically clear value
It works for me in version 1.4.3
when null
is provided. The readme is misleading as it wrongly suggest using false
and should be corrected.
By default when component is mounted the current date is selected. Is there a way to keep the field empty similar to what clear button does.