summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-form.tsx
diff options
context:
space:
mode:
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) {