minor fixes
This commit is contained in:
parent
a40ca9a4a3
commit
54347b7116
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ Let's relax the filter a little bit by allowing arrow keys `key:Left`, `key:Righ
|
|||
<script>
|
||||
function checkPhoneKey(key) {
|
||||
return (key >= '0' && key <= '9') ||
|
||||
['+','(',')','-','ArrowLeft','ArrowRight','Delete','Backspace'].includes(key);
|
||||
['+','(',')','-',*!*'ArrowLeft','ArrowRight','Delete','Backspace'*/!*].includes(key);
|
||||
}
|
||||
</script>
|
||||
<input onkeydown="return checkPhoneKey(event.key)" placeholder="Phone, please" type="tel">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue