mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
turn off automplete and autocorrect for join-flow inputs
This commit is contained in:
parent
01c509d527
commit
644aa272b3
4 changed files with 24 additions and 1 deletions
|
@ -89,8 +89,12 @@ const FormikRadioButton = ({
|
||||||
>
|
>
|
||||||
{isCustomInput && (
|
{isCustomInput && (
|
||||||
<FormikInput
|
<FormikInput
|
||||||
|
autoCapitalize="off"
|
||||||
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="formik-radio-input"
|
className="formik-radio-input"
|
||||||
name="custom"
|
name="custom"
|
||||||
|
spellCheck={false}
|
||||||
wrapperClassName="formik-radio-input-wrapper"
|
wrapperClassName="formik-radio-input-wrapper"
|
||||||
/* eslint-disable react/jsx-no-bind */
|
/* eslint-disable react/jsx-no-bind */
|
||||||
onChange={event => onSetCustom(event.target.value)}
|
onChange={event => onSetCustom(event.target.value)}
|
||||||
|
|
|
@ -160,6 +160,9 @@ class EmailStep extends React.Component {
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
<FormikInput
|
<FormikInput
|
||||||
|
autoCapitalize="off"
|
||||||
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'join-flow-input',
|
'join-flow-input',
|
||||||
'join-flow-input-tall',
|
'join-flow-input-tall',
|
||||||
|
@ -169,6 +172,7 @@ class EmailStep extends React.Component {
|
||||||
id="email"
|
id="email"
|
||||||
name="email"
|
name="email"
|
||||||
placeholder={this.props.intl.formatMessage({id: 'general.emailAddress'})}
|
placeholder={this.props.intl.formatMessage({id: 'general.emailAddress'})}
|
||||||
|
type="email"
|
||||||
validate={this.validateEmail}
|
validate={this.validateEmail}
|
||||||
validationClassName="validation-full-width-input"
|
validationClassName="validation-full-width-input"
|
||||||
/* eslint-disable react/jsx-no-bind */
|
/* eslint-disable react/jsx-no-bind */
|
||||||
|
|
|
@ -21,7 +21,10 @@ const JoinFlowStep = ({
|
||||||
titleClassName,
|
titleClassName,
|
||||||
waiting
|
waiting
|
||||||
}) => (
|
}) => (
|
||||||
<form onSubmit={onSubmit}>
|
<form
|
||||||
|
autoComplete="off"
|
||||||
|
onSubmit={onSubmit}
|
||||||
|
>
|
||||||
<div className="join-flow-outer-content">
|
<div className="join-flow-outer-content">
|
||||||
{headerImgSrc && (
|
{headerImgSrc && (
|
||||||
<div className="join-flow-header-image-wrapper">
|
<div className="join-flow-header-image-wrapper">
|
||||||
|
|
|
@ -143,6 +143,9 @@ class UsernameStep extends React.Component {
|
||||||
{this.props.intl.formatMessage({id: 'registration.createUsername'})}
|
{this.props.intl.formatMessage({id: 'registration.createUsername'})}
|
||||||
</div>
|
</div>
|
||||||
<FormikInput
|
<FormikInput
|
||||||
|
autoCapitalize="off"
|
||||||
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'join-flow-input'
|
'join-flow-input'
|
||||||
)}
|
)}
|
||||||
|
@ -150,6 +153,7 @@ class UsernameStep extends React.Component {
|
||||||
id="username"
|
id="username"
|
||||||
name="username"
|
name="username"
|
||||||
placeholder={this.props.intl.formatMessage({id: 'general.username'})}
|
placeholder={this.props.intl.formatMessage({id: 'general.username'})}
|
||||||
|
spellCheck={false}
|
||||||
toolTip={this.state.focused === 'username' && !touched.username &&
|
toolTip={this.state.focused === 'username' && !touched.username &&
|
||||||
this.props.intl.formatMessage({id: 'registration.usernameAdviceShort'})}
|
this.props.intl.formatMessage({id: 'registration.usernameAdviceShort'})}
|
||||||
validate={this.validateUsernameIfPresent}
|
validate={this.validateUsernameIfPresent}
|
||||||
|
@ -170,6 +174,9 @@ class UsernameStep extends React.Component {
|
||||||
{this.props.intl.formatMessage({id: 'registration.choosePasswordStepTitle'})}
|
{this.props.intl.formatMessage({id: 'registration.choosePasswordStepTitle'})}
|
||||||
</div>
|
</div>
|
||||||
<FormikInput
|
<FormikInput
|
||||||
|
autoCapitalize="off"
|
||||||
|
autoComplete={values.showPassword ? 'off' : 'new-password'}
|
||||||
|
autoCorrect="off"
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'join-flow-input',
|
'join-flow-input',
|
||||||
{'join-flow-input-password':
|
{'join-flow-input-password':
|
||||||
|
@ -179,6 +186,7 @@ class UsernameStep extends React.Component {
|
||||||
id="password"
|
id="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder={this.props.intl.formatMessage({id: 'general.password'})}
|
placeholder={this.props.intl.formatMessage({id: 'general.password'})}
|
||||||
|
spellCheck={false}
|
||||||
toolTip={this.state.focused === 'password' && !touched.password &&
|
toolTip={this.state.focused === 'password' && !touched.password &&
|
||||||
this.props.intl.formatMessage({id: 'registration.passwordAdviceShort'})}
|
this.props.intl.formatMessage({id: 'registration.passwordAdviceShort'})}
|
||||||
type={values.showPassword ? 'text' : 'password'}
|
type={values.showPassword ? 'text' : 'password'}
|
||||||
|
@ -195,6 +203,9 @@ class UsernameStep extends React.Component {
|
||||||
/* eslint-enable react/jsx-no-bind */
|
/* eslint-enable react/jsx-no-bind */
|
||||||
/>
|
/>
|
||||||
<FormikInput
|
<FormikInput
|
||||||
|
autoCapitalize="off"
|
||||||
|
autoComplete={values.showPassword ? 'off' : 'new-password'}
|
||||||
|
autoCorrect="off"
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'join-flow-input',
|
'join-flow-input',
|
||||||
'join-flow-password-confirm',
|
'join-flow-password-confirm',
|
||||||
|
@ -210,6 +221,7 @@ class UsernameStep extends React.Component {
|
||||||
placeholder={this.props.intl.formatMessage({
|
placeholder={this.props.intl.formatMessage({
|
||||||
id: 'registration.confirmPasswordInstruction'
|
id: 'registration.confirmPasswordInstruction'
|
||||||
})}
|
})}
|
||||||
|
spellCheck={false}
|
||||||
toolTip={
|
toolTip={
|
||||||
this.state.focused === 'passwordConfirm' && !touched.passwordConfirm &&
|
this.state.focused === 'passwordConfirm' && !touched.passwordConfirm &&
|
||||||
this.props.intl.formatMessage({
|
this.props.intl.formatMessage({
|
||||||
|
|
Loading…
Reference in a new issue