Skip to content

Commit

Permalink
[MD] Add explicit no spell check to password fields
Browse files Browse the repository at this point in the history
Signed-off-by: Kristen Tian <tyarong@amazon.com>
  • Loading branch information
kristenTian committed Nov 7, 2022
1 parent f90f323 commit 1cbe0a6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export class CreateDataSourceForm extends React.Component<
value={this.state.auth.credentials.password || ''}
onChange={this.onChangePassword}
onBlur={this.validatePassword}
spellCheck={false}
data-test-subj="createDataSourceFormPasswordField"
/>
</EuiFormRow>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const UpdatePasswordModal = ({
type={'dual'}
value={newPassword}
isInvalid={!isNewPasswordValid}
spellCheck={false}
onChange={(e) => setNewPassword(e.target.value)}
onBlur={validateNewPassword}
/>
Expand All @@ -149,6 +150,7 @@ export const UpdatePasswordModal = ({
type={'dual'}
value={confirmNewPassword}
isInvalid={!!isConfirmNewPasswordValid.length}
spellCheck={false}
onChange={(e) => setConfirmNewPassword(e.target.value)}
onBlur={validateConfirmNewPassword}
/>
Expand Down

0 comments on commit 1cbe0a6

Please sign in to comment.