From 72aeb8ef05e3d2b1cf63c659648ad8659474903b Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 21 Oct 2020 16:30:34 +0200 Subject: Add mentions data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/comments/src/components/Comment.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'apps/comments/src/components') diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 8324305873c..a8a46ba031f 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -67,7 +67,8 @@
- @@ -121,10 +122,6 @@ export default { inheritAttrs: false, props: { - source: { - type: Object, - default: () => ({}), - }, actorDisplayName: { type: String, required: true, @@ -227,6 +224,10 @@ export default { if (this.editor) { this.onNewComment(this.localMessage.trim()) + this.$nextTick(() => { + // Focus the editor again + this.$refs.editor.$el.focus() + }) return } this.onEditComment(this.localMessage.trim()) -- cgit v1.2.3