Merge pull request #5 from qburst/#5336-fix-inputotp-length-not-working

Fix #5336: InputOtp Length not working - Lint fix
pull/5383/head
Amal Mathew 2024-03-07 10:45:17 +05:30 committed by GitHub
commit 47061f02ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -174,9 +174,11 @@ export default {
if (this.integerOnly && !(event.keyCode >= 48 && event.keyCode <= 57)) { if (this.integerOnly && !(event.keyCode >= 48 && event.keyCode <= 57)) {
event.preventDefault(); event.preventDefault();
} }
if (limitReached && event.keyCode != 46) { if (limitReached && event.keyCode != 46) {
event.preventDefault(); event.preventDefault();
} }
break; break;
} }
}, },