react-datepicker2 icon indicating copy to clipboard operation
react-datepicker2 copied to clipboard

Clear the input

Open ardalan-nhd opened this issue 3 years ago • 3 comments

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

ardalan-nhd avatar Apr 17 '21 12:04 ardalan-nhd

Well it won't change to a random day. It will be set to today's date

ardalan-nhd avatar Apr 17 '21 12:04 ardalan-nhd

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!

mashouf avatar Apr 22 '21 08:04 mashouf

you can set the value to null

alinjf avatar Apr 26 '21 20:04 alinjf