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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user