1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 18:51:40 +02:00
- further cleaned up the toggle action
- there's no way to remove the redraws because then the jquery isn't being fired properly
This commit is contained in:
Daniël Klabbers
2019-01-25 05:37:45 +01:00
parent 2d714a06b5
commit 2dced2e6c8
5 changed files with 131491 additions and 59 deletions

View File

@@ -77,7 +77,7 @@ export default class EditUserModal extends Modal {
<label>{app.translator.trans('core.forum.edit_user.password_heading')}</label>
<div>
<label className="checkbox">
<input type="checkbox" value={this.setPassword()} onchange={e => {
<input type="checkbox" onchange={e => {
this.setPassword(e.target.checked);
m.redraw(true);
if (e.target.checked) this.$('[name=password]').select();