summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts/post-form.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common/scripts/post-form.ts')
-rw-r--r--src/client/app/common/scripts/post-form.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/post-form.ts b/src/client/app/common/scripts/post-form.ts
index 9b155f7fcb..496782fd30 100644
--- a/src/client/app/common/scripts/post-form.ts
+++ b/src/client/app/common/scripts/post-form.ts
@@ -328,6 +328,9 @@ export default (opts) => ({
w.$once('chosen', v => {
this.applyVisibility(v);
});
+ this.$once('hook:beforeDestroy', () => {
+ w.close();
+ });
},
applyVisibility(v: string) {
@@ -457,6 +460,9 @@ export default (opts) => ({
vm.$once('chosen', emoji => {
insertTextAtCursor(this.$refs.text, emoji);
});
+ this.$once('hook:beforeDestroy', () => {
+ vm.close();
+ });
},
saveDraft() {