1
0
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:
Toby Zerner
2015-11-23 08:47:16 +10:30
parent 2088fceb8b
commit 599958354c
3 changed files with 6 additions and 2 deletions

View File

@@ -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);
}