Registration/Login: improve text inputs on mobile
This commit is contained in:
parent
7b7cfdd4be
commit
a9a3f09068
|
@ -107,6 +107,8 @@ export const NativeCaptchaField = ({ captcha, onChange, onClick, name, value })
|
|||
name={name}
|
||||
value={value}
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
onChange={onChange}
|
||||
required
|
||||
/>
|
||||
|
|
|
@ -40,6 +40,8 @@ class LoginForm extends ImmutablePureComponent {
|
|||
type='text'
|
||||
name='username'
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
@ -51,6 +53,8 @@ class LoginForm extends ImmutablePureComponent {
|
|||
type='password'
|
||||
name='password'
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -172,6 +172,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
name='username'
|
||||
hint={intl.formatMessage(messages.username_hint)}
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
pattern='^[a-zA-Z\d_-]+'
|
||||
onChange={this.onInputChange}
|
||||
required
|
||||
|
@ -181,6 +183,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
name='email'
|
||||
type='email'
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
onChange={this.onInputChange}
|
||||
required
|
||||
/>
|
||||
|
@ -189,6 +193,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
name='password'
|
||||
type='password'
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
onChange={this.onInputChange}
|
||||
required
|
||||
/>
|
||||
|
@ -197,6 +203,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
name='confirm'
|
||||
type='password'
|
||||
autoComplete='off'
|
||||
autoCorrect='off'
|
||||
autoCapitalize='off'
|
||||
onChange={this.onInputChange}
|
||||
required
|
||||
/>
|
||||
|
@ -206,7 +214,6 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
hint={<FormattedMessage id='registration.reason_hint' defaultMessage='This will help us review your application' />}
|
||||
name='reason'
|
||||
maxLength={500}
|
||||
autoComplete='off'
|
||||
onChange={this.onInputChange}
|
||||
required
|
||||
/>}
|
||||
|
|
Loading…
Reference in New Issue