Hacker News new | ask | show | jobs
by lelanthran 1124 days ago
Your arrays and buttons example appears broken - after the first item is added to the todo list, typing new items in the input field leaves the add button looking disabled (although it works when you click it).

I think it only gets enabled when focus leaves the input field.

2 comments

Thanks for pointing that out. Yes had rewritten it a will need to use a different event to enable the button if there is an update in the input field.
Fixed :-)