This repository was archived by the owner on Nov 16, 2018. It is now read-only.
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
Handling of nullable dates #122
Open
Description
There are a lot of cases where you either want to provide a datetime or not.
The component should be able to handle ""
or null
on it's dateTime
property, and show nothing accordingly.
The component should never return "Invalid date" as a result of the onChange method. If the textbox is empty, It should return an empty result instead.
To demonstrate the problem try to use the controlled component in the example with the initial state of { date: "" }
or { date: null }
. No way to escape the "Invalid date"-pocalypse with only a mouse.
Metadata
Metadata
Assignees
Labels
No labels