From 211b2520253201f2007f448ff170fbc4fdfbec4d Mon Sep 17 00:00:00 2001 From: Amal Mathew Date: Thu, 7 Mar 2024 10:44:01 +0530 Subject: [PATCH] Fix #5336: InputOtp Length not working - lint fix --- components/lib/inputotp/InputOtp.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lib/inputotp/InputOtp.vue b/components/lib/inputotp/InputOtp.vue index 93937075b..e54501b57 100755 --- a/components/lib/inputotp/InputOtp.vue +++ b/components/lib/inputotp/InputOtp.vue @@ -174,9 +174,11 @@ export default { if (this.integerOnly && !(event.keyCode >= 48 && event.keyCode <= 57)) { event.preventDefault(); } + if (limitReached && event.keyCode != 46) { event.preventDefault(); } + break; } },