mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 05:46:25 +08:00
app.composer.show: Trigger synchronous redraw
This is needed to have access to the newly created SuperTextarea instance (app.composer.editor) directly after calling show(). Discovered when making ext-mentions work with the Composer state changes. As far as I could reconstruct, a synchronous redraw was also triggered in this situation before the changes in #2161.
This commit is contained in:
parent
384edfa52b
commit
8e3e8826f9
@ -93,7 +93,7 @@ class ComposerState {
|
||||
if (this.position === ComposerState.Position.NORMAL || this.position === ComposerState.Position.FULLSCREEN) return;
|
||||
|
||||
this.position = ComposerState.Position.NORMAL;
|
||||
m.redraw();
|
||||
m.redraw(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user