Skip to content
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
@SoonDead

Description

@SoonDead

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions