From 0dc2afb8261fc474bd46bcb1b57ab845fc1baf32 Mon Sep 17 00:00:00 2001 From: tusooa Date: Mon, 24 Jul 2023 19:13:37 -0400 Subject: Fix a bug where mentioning a user twice will not fill the mention into the textarea --- src/components/post_status_modal/post_status_modal.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/post_status_modal/post_status_modal.js') diff --git a/src/components/post_status_modal/post_status_modal.js b/src/components/post_status_modal/post_status_modal.js index b44354db..8970dd9b 100644 --- a/src/components/post_status_modal/post_status_modal.js +++ b/src/components/post_status_modal/post_status_modal.js @@ -44,6 +44,10 @@ const PostStatusModal = { methods: { closeModal () { this.$store.dispatch('closePostStatusModal') + }, + resetAndClose () { + this.$store.dispatch('resetPostStatusModal') + this.$store.dispatch('closePostStatusModal') } } } -- cgit v1.2.3-70-g09d2