Skip to content

startDate and endDate should be type Date #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kutyel opened this issue May 12, 2025 · 0 comments
Open

startDate and endDate should be type Date #53

kutyel opened this issue May 12, 2025 · 0 comments

Comments

@kutyel
Copy link

kutyel commented May 12, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant