Skip to content

Commit

Permalink
Fix mobile keyboard on shares field (Fix #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
scastiel committed Jan 18, 2024
1 parent 2728f24 commit 395c866
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/expense-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,18 @@ export function ExpenseForm({
),
)
}
inputMode="numeric"
step={1}
inputMode={
form.getValues().splitMode ===
'BY_AMOUNT'
? 'decimal'
: 'numeric'
}
step={
form.getValues().splitMode ===
'BY_AMOUNT'
? 0.01
: 1
}
/>
</FormControl>
{[
Expand Down

0 comments on commit 395c866

Please sign in to comment.