From ba16a8088d065773461990b0146e939f3b3abc2b Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 6 Apr 2023 15:00:45 +0200 Subject: [PATCH] Prevent handling reply when composer is not mounted Signed-off-by: Louis Chemineau --- src/components/Composer/Composer.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue index 0b43ce36..850e29de 100644 --- a/src/components/Composer/Composer.vue +++ b/src/components/Composer/Composer.vue @@ -301,7 +301,7 @@ export default { * @param {import('../../types/Mastodon.js').Account} account */ prefillMessageWithMention(account) { - if (!this.statusIsEmpty) { + if (!this.statusIsEmpty || this.$refs.composerInput === undefined) { return } @@ -413,6 +413,7 @@ export default { this.loading = false this.replyTo = null this.$refs.composerInput.innerText = '' + this.updateStatusContent() this.attachments = {} this.$store.dispatch('refreshTimeline') }