From 59c7e93b11ef7c107a7860bfb0fedc51459a6187 Mon Sep 17 00:00:00 2001 From: Creo-KR Date: Fri, 2 Aug 2024 12:10:54 +0900 Subject: [PATCH] fix InputOtp - [IntegerOnly] make enable Tab, Enter Key down Signed-off-by: Creo-KR --- packages/primevue/src/inputotp/InputOtp.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/primevue/src/inputotp/InputOtp.vue b/packages/primevue/src/inputotp/InputOtp.vue index f9828b55d..5fa705edd 100755 --- a/packages/primevue/src/inputotp/InputOtp.vue +++ b/packages/primevue/src/inputotp/InputOtp.vue @@ -160,6 +160,10 @@ export default { break; + case 'Enter': + case 'Tab': + break; + default: if ((this.integerOnly && !(Number(event.key) >= 0 && Number(event.key) <= 9)) || (this.tokens.join('').length >= this.length && event.code !== 'Delete')) { event.preventDefault();