From 358badd2eb77ec76551333edc1c56f1b204f2998 Mon Sep 17 00:00:00 2001 From: ANTONA09 Date: Wed, 15 May 2024 13:14:22 +0530 Subject: [PATCH] fix: primevue #5740, InputOtp: Able to paste otp in readonly and disabled modes --- components/lib/inputotp/InputOtp.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lib/inputotp/InputOtp.vue b/components/lib/inputotp/InputOtp.vue index 342ca421b..ffb8235df 100755 --- a/components/lib/inputotp/InputOtp.vue +++ b/components/lib/inputotp/InputOtp.vue @@ -165,6 +165,9 @@ export default { } }, onPaste(event) { + if(this.readonly || this.disabled) { + return + } let paste = event.clipboardData.getData('text'); if (paste.length) {