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>
This commit is contained in:
Vincent Petry 2021-03-11 15:39:33 +01:00
parent 69c4578b5b
commit a60127acc8
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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'"