Hacker News new | ask | show | jobs
by TimSchumann 910 days ago
> Any feedback is welcome. Top on my todo list is improving performance (reduce interaction lag).

Maybe don't have it render anything until a valid date post 1800 has been parsed in all fields?

I started typing a date and it rendered the year 0190.

2 comments

OP needs to learn about window.setTimeout(), or whatever the fancy wrapper function is in their framework of choice.
Thanks for pointing this out. I just updated it to only re-render the grid of weeks when the date input is unfocused (onblur) rather than unnecessarily updating the grid while you're still entering the date.