Skip to content

Commit

Permalink
add inputMode
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed Oct 15, 2024
1 parent 3c93c1b commit e0ce292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/numerals-web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export default function Home() {
dir="auto"
placeholder="Type number here"
type="number"
pattern="-?[0-9]*(\.[0-9]+)?"
inputMode="decimal"
value={textBoxValue}
onChange={(e) => {
setTextBoxValue(e.target.value)
Expand Down

0 comments on commit e0ce292

Please sign in to comment.