From: Dessalines Date: Tue, 10 Mar 2020 14:23:16 +0000 (-0400) Subject: Fix issue with preview mode not resizing comment-form. X-Git-Url: http://these/git/%22https:/lemmy.ml/u/Liwott/static/%24%7Bargs.pageFn.next%7D?a=commitdiff_plain;h=4fbf55d79e355608c75aa8218cd7f487c58fa04d;p=lemmy.git Fix issue with preview mode not resizing comment-form. --- diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 6a504592..ae3e7cfc 100644 --- a/ui/src/components/comment-form.tsx +++ b/ui/src/components/comment-form.tsx @@ -220,6 +220,7 @@ export class CommentForm extends Component { this.state.previewMode = false; this.state.loading = false; this.state.commentForm.content = ''; + this.setState(this.state); let form: any = document.getElementById(this.formId); form.reset(); if (this.props.node) {