mirror of
https://github.com/flarum/core.git
synced 2025-10-10 22:44:25 +02:00
Refactor composer preview logic
This commit is contained in:
@@ -22,7 +22,7 @@ export default class ReplyComposer extends ComposerBody {
|
||||
// minimize the composer in order to see the preview. We do this as a
|
||||
// timeout so that it occurs after the click handler on the composer
|
||||
// itself that shows the composer if minimized.
|
||||
if (app.composer.$backdrop.length) {
|
||||
if (app.composer.isMobile()) {
|
||||
setTimeout(() => app.composer.minimize(), 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user