Merge pull request #6172 from Creo-KR/master

fix: InputOtp - [IntegerOnly] make enable Tab, Enter Key down
pull/6176/head
Tuğçe Küçükoğlu 2024-08-02 11:03:36 +03:00 committed by GitHub
commit 38508c2e4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ export default {
break; break;
case 'Enter':
case 'Tab':
break;
default: default:
if ((this.integerOnly && !(Number(event.key) >= 0 && Number(event.key) <= 9)) || (this.tokens.join('').length >= this.length && event.code !== 'Delete')) { if ((this.integerOnly && !(Number(event.key) >= 0 && Number(event.key) <= 9)) || (this.tokens.join('').length >= this.length && event.code !== 'Delete')) {
event.preventDefault(); event.preventDefault();