Skip to content

Datepicker locks in when value is Invalid and does not open.  #19

@madhuracharya

Description

@madhuracharya

When a user accidentally clicks on one of the empty spaces (previous month's days on the current month) in the date picker, it outputs "invalid date" as the value and will become disabled. Clicking on the input will not open the date picker and the input will not change when anything is typed.

Up till now, I was using a workaround where if the output is "Invalid Date" I pass in an empty string. This only works for independent date pickers. When 2 date pickers are tied together with min and max values. It is possible that both of them can get locked.

Here is a demo codesandbox.

Here is what it will look like when the bug happens.
Screenshot 2021-06-29 at 1 24 33 PM

Please help me fix this

Thanks for looking at my issue.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions