mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 23:59:57 +08:00
Only do double redraw if there is a component we need to get rid of
This commit is contained in:
@ -218,8 +218,10 @@ class Composer extends Component {
|
|||||||
// old composer will remain. To prevent this from happening, we clear the
|
// old composer will remain. To prevent this from happening, we clear the
|
||||||
// component and force a redraw, so that the new component will be working
|
// component and force a redraw, so that the new component will be working
|
||||||
// on a blank slate.
|
// on a blank slate.
|
||||||
this.component = null;
|
if (this.component) {
|
||||||
m.redraw(true);
|
this.clear();
|
||||||
|
m.redraw(true);
|
||||||
|
}
|
||||||
this.component = component;
|
this.component = component;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user