You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into this, and it's incredibly simple to do.. but.. I ran into an edge-case that I wasn't able to easily workaround.
The auto-tabbing is based on an onChange event handler, but if you type the same digit that's already displayed, it doesn't trigger the change event, which causes it not to advance, which instantly breaks your flow.
The alternative is to simulate the change event, tab on keyup, etc, which quickly went down the path of "This is getting messy"
Ideally at step 4, upon tabbing to an input that has contents, it should select the existing content to allow typing over it, but not clear it.
This could also be achieved as a general "Upon field being focused, select the character" style to allow easy overwrite.
The text was updated successfully, but these errors were encountered: