Merge pull request #6596 from brtinney/fix-6317

Fix #6317 InputOtp
pull/6775/head
Tuğçe Küçükoğlu 2024-11-13 10:43:20 +03:00 committed by GitHub
commit 1e70511ee0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ export default {
this.moveToPrev(event);
} else if (event.inputType === 'insertText' || event.inputType === 'deleteContentForward') {
this.moveToNext(event);
} else if (event instanceof CustomEvent) {
// iOS/macOS one-time-code autocomplete uses CustomEvent vs. InputEvent for each character in the code
// If moveToNext is not called, it will continue to append the next value after the first character
this.moveToNext(event);
}
},
updateModel(event) {