fixup number-only event verifier to allow enter

This commit is contained in:
c0repwn3r 2023-02-24 11:31:26 -05:00
parent 5174fa0b61
commit d00df353d8
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@
}
function validateKeypress(e: KeyboardEvent) {
if (e.charCode === 13) { return; }
if (e.charCode < 47 || e.charCode > 57) {
e.preventDefault();
}

View File

@ -67,6 +67,7 @@
});
function validateInput(e: KeyboardEvent) {
if (e.charCode === 13) { return; }
if (e.charCode < 47 || e.charCode > 57) {
e.preventDefault();
}