react-datepicker2
react-datepicker2 copied to clipboard
Clear the input
Is there a way to clear the input? Whenever i try to clear the input? the value just changes to a random day and it won't get cleared
Well it won't change to a random day. It will be set to today's date
Hi @ardalan-nhd You can find in many closed issues ( as one of me too ) you can set setTodayOnBlur to false and as @mberneti said the default value is true for backward compatibility issues!
you can set the value to null