mirror of
https://github.com/flarum/core.git
synced 2025-07-20 08:11:27 +02: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:
@@ -93,7 +93,7 @@ class ComposerState {
|
|||||||
if (this.position === ComposerState.Position.NORMAL || this.position === ComposerState.Position.FULLSCREEN) return;
|
if (this.position === ComposerState.Position.NORMAL || this.position === ComposerState.Position.FULLSCREEN) return;
|
||||||
|
|
||||||
this.position = ComposerState.Position.NORMAL;
|
this.position = ComposerState.Position.NORMAL;
|
||||||
m.redraw();
|
m.redraw(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user