From a8e6d4638f2df2202978f993d07c9be19d26a764 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 10 Mar 2020 10:23:16 -0400 Subject: [PATCH] Fix issue with preview mode not resizing comment-form. --- ui/src/components/comment-form.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 6a5045924..ae3e7cfc3 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) {