better input

This commit is contained in:
Matthias Kretschmann 2024-03-30 22:12:29 +00:00
parent e85bf4f6e4
commit c64c8d91e0
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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))}
/> />