feat: enhance input fields for numeric entry

- Added `inputMode="numeric"` and `pattern="[0-9]*"` attributes to number input fields in WithdrawModalContent, SetModalContent, and ListCreationModalContent components.
- These changes improve user experience by ensuring that numeric keyboards are displayed on mobile devices, facilitating easier input of numerical values.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-01-15 13:24:10 +08:00
parent f17446d027
commit 00a07647f8
3 changed files with 12 additions and 1 deletions
@@ -148,6 +148,8 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => {
<Input
{...field}
type="number"
inputMode="numeric"
pattern="[0-9]*"
onChange={(value) => field.onChange(value.target.valueAsNumber)}
/>
</FormControl>