diff --git a/packages/primevue/src/inputotp/InputOtp.vue b/packages/primevue/src/inputotp/InputOtp.vue index dc3ce81dc..0cdbf1339 100755 --- a/packages/primevue/src/inputotp/InputOtp.vue +++ b/packages/primevue/src/inputotp/InputOtp.vue @@ -177,7 +177,7 @@ export default { let paste = event.clipboardData.getData('text'); if (paste.length) { - let pastedCode = paste.substring(0, this.length + 1); + let pastedCode = paste.substring(0, this.length); if (!this.integerOnly || !isNaN(pastedCode)) { this.tokens = pastedCode.split('');