Fix issue with preview mode not resizing comment-form.

pull/598/head
Dessalines 2020-03-10 10:23:16 -04:00
parent a781990b85
commit a8e6d4638f
1 changed files with 1 additions and 0 deletions

View 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) {