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