Skip to content

startDate and endDate should be type Date #53

@kutyel

Description

@kutyel

Currently I have to do this to work with this component:

  const onDateChange = ({ startDate }: { startDate: number }) =>
    (selectedDate = new Date(startDate))

whereas a more proper solution would be to bind to something like this which cally is doing:

onfocusday={(e: CustomEvent<Date>) => (selectedDate = e.detail)}

Is this too tricky or just a preference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions