Skip to content

Improve balance amount input on mobile#2287

Open
mekanics wants to merge 1 commit into
beancount:mainfrom
mekanics:fix-ios-balance-decimal-keyboard
Open

Improve balance amount input on mobile#2287
mekanics wants to merge 1 commit into
beancount:mainfrom
mekanics:fix-ios-balance-decimal-keyboard

Conversation

@mekanics
Copy link
Copy Markdown

Summary

  • Change the balance amount field from a telephone input to a text input with inputmode="decimal" so iOS shows a decimal-friendly keyboard.
  • Add a frontend regression test covering the amount input type, input mode, and preserved pattern.

Use a decimal input mode for balance amounts so iOS users can enter fractional values without changing validation semantics.
@mekanics mekanics force-pushed the fix-ios-balance-decimal-keyboard branch from de0fd60 to 3b82bda Compare May 27, 2026 19:14
<input
type="tel"
type="text"
inputmode="decimal"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to MDN, this would show the decimal separator for the users locale - does that always allow entering a . as decimal separator as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants