Fix editing comments in the UI

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-03-10 11:58:23 +01:00
parent 3f891bf103
commit 08310406a1

View File

@@ -142,8 +142,10 @@ export default {
this.$store.dispatch('setReplyTo', this.comment) this.$store.dispatch('setReplyTo', this.comment)
}, },
showUpdateForm() { showUpdateForm() {
this.commentMsg = this.$refs.richTextElement.children[0].innerHTML
this.edit = true this.edit = true
this.$nextTick(() => {
this.commentMsg = this.$refs.richTextElement.children[0].innerHTML
})
}, },
hideUpdateForm() { hideUpdateForm() {
this.commentMsg = '' this.commentMsg = ''