summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2024-04-23 14:45:17 +0200
committerMaksim Sukharev <antreesy.web@gmail.com>2024-04-23 15:25:38 +0200
commitd6ffca80ca1ba94b7115bc91b794a284109ffb42 (patch)
treeebbbd2711efbc522099a82a86f8b92e901a3e707
parentc8237a1bfc619bc85da57a162e802673cb3e5270 (diff)
fix(chat): focus input after editing the message
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r--src/components/NewMessage/NewMessage.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/NewMessage/NewMessage.vue b/src/components/NewMessage/NewMessage.vue
index 7d52eb314..a9f67bf15 100644
--- a/src/components/NewMessage/NewMessage.vue
+++ b/src/components/NewMessage/NewMessage.vue
@@ -738,6 +738,8 @@ export default {
})
this.chatExtrasStore.removeMessageIdToEdit(this.token)
this.resetTypingIndicator()
+ // refocus input as the user might want to type further
+ this.focusInput()
} catch {
this.$emit('failure')
showError(t('spreed', 'The message could not be edited'))