mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 19:33:06 +08:00
fix: fixes autofill issues in chrome (#2837)
This commit is contained in:
@@ -33,6 +33,7 @@ const ClientSecretField: FunctionComponent<Props> = ({
|
||||
{...input}
|
||||
id={input.name}
|
||||
disabled={disabled || meta.submitting}
|
||||
autoComplete="new-password"
|
||||
// TODO: (wyattjoh) figure out how to add translations to these props
|
||||
hidePasswordTitle="Show Client Secret"
|
||||
showPasswordTitle="Hide Client Secret"
|
||||
|
||||
@@ -162,6 +162,7 @@ const SMTP: FunctionComponent<Props> = ({ disabled }) => (
|
||||
{...input}
|
||||
id={input.name}
|
||||
disabled={disabled || !enabled}
|
||||
autoComplete="new-password"
|
||||
fullWidth
|
||||
color={colorFromMeta(meta)}
|
||||
/>
|
||||
|
||||
@@ -32,9 +32,10 @@ const APIKeyField: FunctionComponent<Props> = ({
|
||||
{...input}
|
||||
id={`configure-moderation-${input.name}`}
|
||||
disabled={disabled}
|
||||
autoComplete="new-password"
|
||||
// TODO: (wyattjoh) figure out how to add translations to these props
|
||||
hidePasswordTitle="Show API Key"
|
||||
showPasswordTitle="Hide API Key"
|
||||
hidePasswordTitle="Hide API Key"
|
||||
showPasswordTitle="Show API Key"
|
||||
color={colorFromMeta(meta)}
|
||||
fullWidth
|
||||
/>
|
||||
|
||||
@@ -869,7 +869,7 @@ needs to be displayed, e.g. “Log in with <Facebook>”.
|
||||
>
|
||||
<input
|
||||
autoCapitalize="off"
|
||||
autoComplete="off"
|
||||
autoComplete="new-password"
|
||||
autoCorrect="off"
|
||||
className="PasswordField-colorRegular PasswordField-fullWidth PasswordField-input"
|
||||
data-testid="password-field"
|
||||
@@ -1602,7 +1602,7 @@ to create and set up a web application. For more information visit:
|
||||
>
|
||||
<input
|
||||
autoCapitalize="off"
|
||||
autoComplete="off"
|
||||
autoComplete="new-password"
|
||||
autoCorrect="off"
|
||||
className="PasswordField-colorRegular PasswordField-fullWidth PasswordField-input"
|
||||
data-testid="password-field"
|
||||
@@ -1923,7 +1923,7 @@ For more information visit:
|
||||
>
|
||||
<input
|
||||
autoCapitalize="off"
|
||||
autoComplete="off"
|
||||
autoComplete="new-password"
|
||||
autoCorrect="off"
|
||||
className="PasswordField-colorRegular PasswordField-fullWidth PasswordField-input"
|
||||
data-testid="password-field"
|
||||
|
||||
@@ -974,7 +974,7 @@ community model building purposes to improve the API over time.
|
||||
>
|
||||
<input
|
||||
autoCapitalize="off"
|
||||
autoComplete="off"
|
||||
autoComplete="new-password"
|
||||
autoCorrect="off"
|
||||
className="PasswordField-colorRegular PasswordField-fullWidth PasswordField-input"
|
||||
data-testid="password-field"
|
||||
@@ -995,7 +995,7 @@ community model building purposes to improve the API over time.
|
||||
onKeyUp={[Function]}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
title="Hide API Key"
|
||||
title="Show API Key"
|
||||
>
|
||||
<i
|
||||
aria-hidden="true"
|
||||
@@ -1178,7 +1178,7 @@ in your Akismet account:
|
||||
>
|
||||
<input
|
||||
autoCapitalize="off"
|
||||
autoComplete="off"
|
||||
autoComplete="new-password"
|
||||
autoCorrect="off"
|
||||
className="PasswordField-colorRegular PasswordField-fullWidth PasswordField-input"
|
||||
data-testid="password-field"
|
||||
@@ -1199,7 +1199,7 @@ in your Akismet account:
|
||||
onKeyUp={[Function]}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
title="Hide API Key"
|
||||
title="Show API Key"
|
||||
>
|
||||
<i
|
||||
aria-hidden="true"
|
||||
|
||||
Reference in New Issue
Block a user