fix InputOtp - [IntegerOnly] make enable Tab, Enter Key down

Signed-off-by: Creo-KR <gjwlsdn087@naver.com>
pull/6172/head
Creo-KR 2024-08-02 12:10:54 +09:00
parent 95b5af1884
commit 59c7e93b11
1 changed files with 4 additions and 0 deletions

View File

@ -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();