Merge pull request #6172 from Creo-KR/master
fix: InputOtp - [IntegerOnly] make enable Tab, Enter Key downpull/6176/head
commit
38508c2e4a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue