Skip to content

Commit

Permalink
Number input
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Nov 21, 2023
1 parent 42428d7 commit 2a7a79a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export function Game() {
disabled={state.status !== 'unanswered'}
ref={inputRef}
type="number"
inputmode="numeric"
pattern="[0-9]*"
value={answer()}
onInput={(e) => setAnswer(e.currentTarget.value)}
/>
Expand Down

0 comments on commit 2a7a79a

Please sign in to comment.