diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-11 15:39:33 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-03-11 15:39:33 +0100 |
commit | a60127acc84f8b87809bc25d2cb8ebf44eb2f50a (patch) | |
tree | 4bd6903c68e25bdeb0e1baa666106cb673ae06fe /apps/comments/src | |
parent | 69c4578b5bdd54a53ae5467fc656af3aed2afb58 (diff) | |
download | nextcloud-server-a60127acc84f8b87809bc25d2cb8ebf44eb2f50a.tar.gz nextcloud-server-a60127acc84f8b87809bc25d2cb8ebf44eb2f50a.zip |
Fix comments field value update
Fixes issue where the comment field value was not properly read out of
the rich content field.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/comments/src')
-rw-r--r-- | apps/comments/src/components/Comment.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index fb1f073479c..f306d2f023b 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -66,11 +66,12 @@ </div> <!-- Message editor --> - <div class="comment__editor " v-if="editor || editing"> + <div v-if="editor || editing" class="comment__editor "> <RichContenteditable ref="editor" - v-model="localMessage" :auto-complete="autoComplete" :contenteditable="!loading" + :value="localMessage" + @update:value="updateLocalMessage" @submit="onSubmit" /> <input v-tooltip="t('comments', 'Post comment')" :class="loading ? 'icon-loading-small' :'icon-confirm'" |