When entering a score, focus is lost after each input event
Closed this issue ยท 2 comments
Gigabyte5671 commented
This is because the quiz list is re-rendered after each input event. Reference
Atm I can't think of a better way to do the two-way data binding for the inputs. @ZeroX-DG Do you have any ideas?
I don't really want to use onchange
because of the edge case where an input is still focused when the tab is closed, which would cause that score not to be saved.
ZeroX-DG commented
Debounce FTW my friend ๐
AlDrag commented
Solved with ffa92def30c.