Re:Show HN: Weeks of Your Life
by marssaxman on Sunday December 24, 2023 @04:34PM
(#38757075)
I couldn't make the date picker work at all - the scroller kept snapping back to a previous position.
[ Parent
| on HN ]
Glad I'm not the only one!
Ah, sorry about that. It is the native date picker as n8cpdx pointed out.
I just pushed an update to only update the grid of weeks once the date picker is unfocused (onblur event) rather than recomputing unnecessarily on every change event. I suspect that is what caused the bug you're describing, but let me know if it's still broken.
Re:Show HN: Weeks of Your Life
by marssaxman on Monday December 25, 2023 @03:33PM
(#38765845)
Yes, that fixed it. Thanks!
(I didn't know the browser had a native date picker.)
Great! Thanks for following up.
And yep, the browser date picker (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in...) is a major time saver. This project uses the native color picker, too.