Skip to content

Commit

Permalink
fix(start): Disable autocorrection on game code text input
Browse files Browse the repository at this point in the history
  • Loading branch information
barnslig committed Feb 10, 2022
1 parent ed2c8ea commit 6499a32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/app/pages/StartPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ const StartPage = ({ gameId }: StartPageProps) => {
required
error={meta.touched && Boolean(meta.error)}
helperText={meta.touched && meta.error}
inputProps={{
autoCapitalize: "off",
autoComplete: "off",
autoCorrect: "off",
}}
{...field}
/>
)}
Expand Down
3 changes: 3 additions & 0 deletions app/src/app/pages/__snapshots__/StartPage.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ exports[`renders correctly when no game id is supplied 1`] = `
>
<input
aria-invalid="false"
autocapitalize="off"
autocomplete="off"
autocorrect="off"
class="MuiOutlinedInput-input MuiInputBase-input css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input"
id="gameId"
name="gameId"
Expand Down

0 comments on commit 6499a32

Please sign in to comment.