commit: f7f8181dcf5d2a699c0d870bd8873cbe7784a6af
parent: 9ccc6174a73199dc3c5fabfc9a9769ab9265060a
Author: Shpuld Shpuldson <shp@cock.li>
Date: Tue, 7 Jul 2020 14:46:53 +0300
fix preview opening automatically
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
@@ -227,7 +227,7 @@ const PostStatusForm = {
el.style.height = 'auto'
el.style.height = undefined
this.error = null
- this.previewStatus()
+ if (this.preview) this.previewStatus()
} else {
this.error = data.error
}