Skip to content

Commit

Permalink
Disable spellcheck on password field (#132)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Provost <provomat@amazon.com>

Signed-off-by: Matt Provost <provomat@amazon.com>
  • Loading branch information
BSFishy authored Dec 3, 2022
1 parent b832b79 commit d225336
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports[`OuiFieldPassword is rendered 1`] = `
id="1"
name="elastic"
placeholder="Placeholder"
spellcheck="false"
type="password"
value="1"
/>
Expand Down Expand Up @@ -46,6 +47,7 @@ exports[`OuiFieldPassword props compressed is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword--compressed"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -76,6 +78,7 @@ exports[`OuiFieldPassword props dual dual type also renders append 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword--inGroup ouiFieldPassword--withToggle"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -129,6 +132,7 @@ exports[`OuiFieldPassword props dual dualToggleProps is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword--inGroup ouiFieldPassword--withToggle"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -173,6 +177,7 @@ exports[`OuiFieldPassword props fullWidth is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword--fullWidth"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -205,6 +210,7 @@ exports[`OuiFieldPassword props isInvalid is rendered 1`] = `
>
<input
class="ouiFieldPassword"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -235,6 +241,7 @@ exports[`OuiFieldPassword props isLoading is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword-isLoading"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -277,6 +284,7 @@ exports[`OuiFieldPassword props prepend and append is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword--inGroup"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -312,6 +320,7 @@ exports[`OuiFieldPassword props type dual is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword ouiFieldPassword--inGroup ouiFieldPassword--withToggle"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -355,6 +364,7 @@ exports[`OuiFieldPassword props type password is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword"
spellcheck="false"
type="password"
/>
</oui-validatable-control>
Expand Down Expand Up @@ -385,6 +395,7 @@ exports[`OuiFieldPassword props type text is rendered 1`] = `
<oui-validatable-control>
<input
class="ouiFieldPassword"
spellcheck="false"
type="text"
/>
</oui-validatable-control>
Expand Down
1 change: 1 addition & 0 deletions src/components/form/field_password/field_password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export const OuiFieldPassword: FunctionComponent<OuiFieldPasswordProps> = ({
value={value}
ref={setInputRef}
{...rest}
spellCheck="false"
/>
</OuiValidatableControl>
</OuiFormControlLayout>
Expand Down

0 comments on commit d225336

Please sign in to comment.