From 3607d6e56dcf87c87b67622541f31f59a0e99bb4 Mon Sep 17 00:00:00 2001 From: ANTONA09 Date: Wed, 15 May 2024 13:20:25 +0530 Subject: [PATCH] fix: primevue #5740, InputOtp: Able to paste otp in readonly and disabled modes --- components/lib/inputotp/InputOtp.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/inputotp/InputOtp.vue b/components/lib/inputotp/InputOtp.vue index ffb8235df..95a046b01 100755 --- a/components/lib/inputotp/InputOtp.vue +++ b/components/lib/inputotp/InputOtp.vue @@ -165,8 +165,8 @@ export default { } }, onPaste(event) { - if(this.readonly || this.disabled) { - return + if (this.readonly || this.disabled) { + return; } let paste = event.clipboardData.getData('text');