summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-04-06 15:00:45 +0200
committerLouis Chemineau <louis@chmn.me>2023-04-06 16:16:39 +0200
commitba16a8088d065773461990b0146e939f3b3abc2b (patch)
tree6f833045bdbf6fb709184a7f173de4354af627e6 /src
parentef9bd1a3181c048fd75fd83d4fa6ef1667ce9c2b (diff)
Prevent handling reply when composer is not mounted
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'src')
-rw-r--r--src/components/Composer/Composer.vue3
1 files changed, 2 insertions, 1 deletions
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')
}