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.

Initially setting a null dateTime breaks the datepicker #100

Open
@leoasis

Description

@leoasis

Setting a null value initially for the datepicker (or an empty string for that matter) breaks the datepicker. If it is passed a null value, the calendar isn't even shown and there is a NaN title. If passed an empty string, the calendar is shown, but the internal state's selectedDate is invalid, and since every new value is cloned from it, all further values are invalid and the onChange always returns an "invalid date" string.

It would be nice to support a null value in the DateTimeField since sometimes in forms the dates are optional.

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