You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
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.