Skip to content

Commit

Permalink
Fix editing comments in the UI
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Mar 10, 2020
1 parent 3f891bf commit 0831040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/card/CommentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ export default {
this.$store.dispatch('setReplyTo', this.comment)
},
showUpdateForm() {
this.commentMsg = this.$refs.richTextElement.children[0].innerHTML
this.edit = true
this.$nextTick(() => {
this.commentMsg = this.$refs.richTextElement.children[0].innerHTML
})
},
hideUpdateForm() {
this.commentMsg = ''
Expand Down

0 comments on commit 0831040

Please sign in to comment.