fix InputOtp - [IntegerOnly] make enable Tab, Enter Key down
Signed-off-by: Creo-KR <gjwlsdn087@naver.com>pull/6172/head
parent
95b5af1884
commit
59c7e93b11
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue