mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
登录避免自动填充账号密码。
This commit is contained in:
parent
4ea07e11ae
commit
ff6cd352e6
@ -35,6 +35,7 @@ class LoginWindow extends React.Component {
|
||||
<FormControl>
|
||||
<Label>{_t('Username')}</Label>
|
||||
<Input name={'username'} value={username} onChange={this.handleChange} />
|
||||
<input type={'password'} className={'fake'}></input>
|
||||
</FormControl>
|
||||
<FormControl>
|
||||
<Label>{_t('Password')}</Label>
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
.Window.Login>.wrap>.content>.Form>.FormControl>.fake{
|
||||
position: absolute;
|
||||
left: -10000px;
|
||||
top: -10000px;
|
||||
}
|
||||
@ -29,7 +29,7 @@ class Input extends React.Component {
|
||||
max={max}
|
||||
step={step}
|
||||
disabled={disabled}
|
||||
autoComplete={'new-password'}
|
||||
autoComplete={'off'}
|
||||
onFocus={this.handleFocus}
|
||||
onChange={this.handleChange}
|
||||
onInput={this.handleInput}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user