]> Untitled Git - lemmy.git/commitdiff
Fix issue with preview mode not resizing comment-form.
authorDessalines <tyhou13@gmx.com>
Tue, 10 Mar 2020 14:23:16 +0000 (10:23 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 10 Mar 2020 14:23:16 +0000 (10:23 -0400)
ui/src/components/comment-form.tsx

index 6a50459247878fb1a48f705bc0f7bbec603f167a..ae3e7cfc3ff964b7b112f475c9f1c5a0544b08a1 100644 (file)
@@ -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) {