Skip to content

Commit

Permalink
Merge pull request #6596 from brtinney/fix-6317
Browse files Browse the repository at this point in the history
Fix #6317 InputOtp
  • Loading branch information
tugcekucukoglu authored Nov 13, 2024
2 parents da90c6c + d8261d5 commit 1e70511
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/primevue/src/inputotp/InputOtp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1e70511

Please sign in to comment.