Skip to content

Commit

Permalink
Fix bug in the Digit component (#660)
Browse files Browse the repository at this point in the history
### Summary & Motivation

Fix bug in the Digit component that did not allow alphanumeric input
when it should have.

The issue was discovered on iOS, where user only could input numbers.

### Checklist

- [x] I have added a Label to the pull-request
- [x] I have added tests, and done manual regression tests
- [x] I have updated the documentation, if necessary
  • Loading branch information
tjementum authored Jan 3, 2025
2 parents 319053c + 12c1427 commit 43de1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/shared-webapp/ui/components/Digit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function Digit({
id={id}
tabIndex={tabIndex}
type="text"
inputMode="numeric"
inputMode={digitPattern === DigitPattern.Digits ? "numeric" : "text"}
pattern={inputPattern}
maxLength={1}
value={value}
Expand Down

0 comments on commit 43de1a9

Please sign in to comment.