summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-form.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-10 10:23:16 -0400
committerDessalines <tyhou13@gmx.com>2020-03-10 10:23:16 -0400
commit4fbf55d79e355608c75aa8218cd7f487c58fa04d (patch)
treec3627b1c7cbc4671e7b1084d1798c43ab99dd121 /ui/src/components/comment-form.tsx
parent0637ccc1bc7c8822f7633a63f9ab29886342dd06 (diff)
Fix issue with preview mode not resizing comment-form.
Diffstat (limited to 'ui/src/components/comment-form.tsx')
-rw-r--r--ui/src/components/comment-form.tsx1
1 files changed, 1 insertions, 0 deletions
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<CommentFormProps, CommentFormState> {
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) {