[Solid] DatePickerContext questions #3588
-
Hey, Is there something obvious I am missing here? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you share a reproduction? It's much easier to help you that way |
Beta Was this translation helpful? Give feedback.
Looked into it, and the code is quite complex to reason about.
Key observations:
selectToday
. Replaced it withcontext().setValue([parseDate(new Date())])
for nowCleaned it up a bit here:
https://stackblitz.com/edit/solidjs-templates-zn7wrf5c?file=src%2Findex.tsx,src%2FDatePicker.tsx,package.json