Fix: Add ArrowUp and ArrowDown to if params to prevent arrows not working on int input
This commit is contained in:
parent
dba85aadfb
commit
0e8c6681e4
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ export default function IntComponent({
|
|||
event.key !== "c" &&
|
||||
event.key !== "v" &&
|
||||
event.key !== "a" &&
|
||||
event.key !== "ArrowUp" &&
|
||||
event.key !== "ArrowDown" &&
|
||||
!/^[-]?\d*$/.test(event.key)
|
||||
) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue