mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 17:33:18 +01:00
better input
This commit is contained in:
parent
e85bf4f6e4
commit
c64c8d91e0
@ -12,6 +12,8 @@ export function InputAmount({
|
|||||||
<input
|
<input
|
||||||
className={styles.input}
|
className={styles.input}
|
||||||
type="text"
|
type="text"
|
||||||
|
inputMode="numeric"
|
||||||
|
pattern="[0-9]*"
|
||||||
value={amount}
|
value={amount}
|
||||||
onChange={(e) => setAmount(Number(e.target.value))}
|
onChange={(e) => setAmount(Number(e.target.value))}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user