Skip to content

Commit

Permalink
Change date input from type="number" to inputmode="numeric"
Browse files Browse the repository at this point in the history
There are some known issues with inputs of type="number". Read our research into the issues with type="number" alphagov/govuk-frontend#1449 (comment)
  • Loading branch information
kr8n3r committed Dec 16, 2021
1 parent caab7fb commit 4e39148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/platform-admin/views.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function Costs(props: IFormProperties): ReactElement {
className="govuk-input govuk-date-input__input govuk-input--width-4"
id="view-costs-year"
name="year"
type="number"
inputMode="numeric"
defaultValue={new Date().getFullYear()}
pattern="20[123][0-9]"
/>
Expand Down

0 comments on commit 4e39148

Please sign in to comment.