Skip to content

Commit

Permalink
[MD] Add explicit no spellcheck on password fields (#2818)
Browse files Browse the repository at this point in the history
Signed-off-by: Kristen Tian <tyarong@amazon.com>

Signed-off-by: Kristen Tian <tyarong@amazon.com>
(cherry picked from commit fe4b860)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
github-actions[bot] committed Nov 7, 2022
1 parent 5222741 commit 9ba5100
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.

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

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.

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 @@ -585,6 +585,7 @@ export class EditDataSourceForm extends React.Component<EditDataSourceProps, Edi
: this.state.auth.credentials.password
}
isInvalid={!!this.state.formErrorsByField.createCredential?.password?.length}
spellCheck={false}
onChange={this.onChangePassword}
onBlur={this.validatePassword}
disabled={this.props.existingDataSource.auth.type !== AuthType.NoAuth}
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 9ba5100

Please sign in to comment.