mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 23:17:47 +08:00
Fix login box autocomplete
This commit is contained in:
parent
d7fe3ca35b
commit
2143a96c19
4
js/forum/dist/app.js
vendored
4
js/forum/dist/app.js
vendored
|
@ -24095,7 +24095,7 @@ System.register('flarum/components/LogInModal', ['flarum/components/Modal', 'fla
|
||||||
{ className: 'Form-group' },
|
{ className: 'Form-group' },
|
||||||
m('input', { className: 'FormControl', name: 'email', type: 'text', placeholder: extractText(app.translator.trans('core.forum.log_in.username_or_email_placeholder')),
|
m('input', { className: 'FormControl', name: 'email', type: 'text', placeholder: extractText(app.translator.trans('core.forum.log_in.username_or_email_placeholder')),
|
||||||
value: this.email(),
|
value: this.email(),
|
||||||
onchange: m.withAttr('value', this.email),
|
oninput: m.withAttr('value', this.email),
|
||||||
disabled: this.loading })
|
disabled: this.loading })
|
||||||
),
|
),
|
||||||
m(
|
m(
|
||||||
|
@ -24103,7 +24103,7 @@ System.register('flarum/components/LogInModal', ['flarum/components/Modal', 'fla
|
||||||
{ className: 'Form-group' },
|
{ className: 'Form-group' },
|
||||||
m('input', { className: 'FormControl', name: 'password', type: 'password', placeholder: extractText(app.translator.trans('core.forum.log_in.password_placeholder')),
|
m('input', { className: 'FormControl', name: 'password', type: 'password', placeholder: extractText(app.translator.trans('core.forum.log_in.password_placeholder')),
|
||||||
value: this.password(),
|
value: this.password(),
|
||||||
onchange: m.withAttr('value', this.password),
|
oninput: m.withAttr('value', this.password),
|
||||||
disabled: this.loading })
|
disabled: this.loading })
|
||||||
),
|
),
|
||||||
m(
|
m(
|
||||||
|
|
|
@ -50,14 +50,14 @@ export default class LogInModal extends Modal {
|
||||||
<div className="Form-group">
|
<div className="Form-group">
|
||||||
<input className="FormControl" name="email" type="text" placeholder={extractText(app.translator.trans('core.forum.log_in.username_or_email_placeholder'))}
|
<input className="FormControl" name="email" type="text" placeholder={extractText(app.translator.trans('core.forum.log_in.username_or_email_placeholder'))}
|
||||||
value={this.email()}
|
value={this.email()}
|
||||||
onchange={m.withAttr('value', this.email)}
|
oninput={m.withAttr('value', this.email)}
|
||||||
disabled={this.loading} />
|
disabled={this.loading} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="Form-group">
|
<div className="Form-group">
|
||||||
<input className="FormControl" name="password" type="password" placeholder={extractText(app.translator.trans('core.forum.log_in.password_placeholder'))}
|
<input className="FormControl" name="password" type="password" placeholder={extractText(app.translator.trans('core.forum.log_in.password_placeholder'))}
|
||||||
value={this.password()}
|
value={this.password()}
|
||||||
onchange={m.withAttr('value', this.password)}
|
oninput={m.withAttr('value', this.password)}
|
||||||
disabled={this.loading} />
|
disabled={this.loading} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user