From 4fbf55d79e355608c75aa8218cd7f487c58fa04d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 10 Mar 2020 10:23:16 -0400 Subject: Fix issue with preview mode not resizing comment-form. --- ui/src/components/comment-form.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/src') 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) { -- cgit v1.2.3