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've got a few text input fields one after the other, the first one is 6 characters long, the second is 8 the third is 30 long.
If I paste some text that is 20 characters long into the first box AutoTab does a nice job of splitting the text into each of the boxes that follows. Awesome!
But when these fields are bound using Knockout the code in the 'drop paste' event causes Knockout to get a bit confused.
What's happening is Knockout is getting the event for the original 20 character text in the first field but not an event once that text is filtered to 6 characters, and this continues for the following fields.
I work around the issue by firing
$(e).trigger('input');
before each appropriate
$(e).trigger('autotab-next');
Which causes the knockout binding to relalise that the field has now changed since being filtered.
:-)
The text was updated successfully, but these errors were encountered:
I've got a few text input fields one after the other, the first one is 6 characters long, the second is 8 the third is 30 long.
If I paste some text that is 20 characters long into the first box AutoTab does a nice job of splitting the text into each of the boxes that follows. Awesome!
But when these fields are bound using Knockout the code in the 'drop paste' event causes Knockout to get a bit confused.
What's happening is Knockout is getting the event for the original 20 character text in the first field but not an event once that text is filtered to 6 characters, and this continues for the following fields.
I work around the issue by firing
before each appropriate
Which causes the knockout binding to relalise that the field has now changed since being filtered.
:-)
The text was updated successfully, but these errors were encountered: