Fix editing comments in the UI
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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 = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user