Merge pull request #6596 from brtinney/fix-6317

Fix #6317 InputOtp
This commit is contained in:
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

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) {