Merge pull request #811 from sijad/firefox-fix

Fix login box autocomplete in firefox
This commit is contained in:
Toby Zerner 2016-02-22 21:09:18 +10:30
commit 93f3f22623
2 changed files with 4 additions and 4 deletions

View File

@ -24095,7 +24095,7 @@ System.register('flarum/components/LogInModal', ['flarum/components/Modal', 'fla
{ className: 'Form-group' },
m('input', { className: 'FormControl', name: 'email', type: 'text', placeholder: extractText(app.translator.trans('core.forum.log_in.username_or_email_placeholder')),
value: this.email(),
onchange: m.withAttr('value', this.email),
oninput: m.withAttr('value', this.email),
disabled: this.loading })
),
m(
@ -24103,7 +24103,7 @@ System.register('flarum/components/LogInModal', ['flarum/components/Modal', 'fla
{ className: 'Form-group' },
m('input', { className: 'FormControl', name: 'password', type: 'password', placeholder: extractText(app.translator.trans('core.forum.log_in.password_placeholder')),
value: this.password(),
onchange: m.withAttr('value', this.password),
oninput: m.withAttr('value', this.password),
disabled: this.loading })
),
m(

View File

@ -50,14 +50,14 @@ export default class LogInModal extends Modal {
<div className="Form-group">
<input className="FormControl" name="email" type="text" placeholder={extractText(app.translator.trans('core.forum.log_in.username_or_email_placeholder'))}
value={this.email()}
onchange={m.withAttr('value', this.email)}
oninput={m.withAttr('value', this.email)}
disabled={this.loading} />
</div>
<div className="Form-group">
<input className="FormControl" name="password" type="password" placeholder={extractText(app.translator.trans('core.forum.log_in.password_placeholder'))}
value={this.password()}
onchange={m.withAttr('value', this.password)}
oninput={m.withAttr('value', this.password)}
disabled={this.loading} />
</div>