From cb3f89a3a3bb9946ac0cf6fc04fe64726d8e557b Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 11 Sep 2024 12:57:55 +0300 Subject: [PATCH] Fixed #6351 --- packages/primevue/src/inputotp/InputOtp.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/inputotp/InputOtp.vue b/packages/primevue/src/inputotp/InputOtp.vue index dc3ce81dcc..0cdbf13390 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('');