mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-12 15:34:00 +00:00
Fix issue with preview mode not resizing comment-form.
This commit is contained in:
parent
0637ccc1bc
commit
4fbf55d79e
1 changed files with 1 additions and 0 deletions
1
ui/src/components/comment-form.tsx
vendored
1
ui/src/components/comment-form.tsx
vendored
|
@ -220,6 +220,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
|
||||||
this.state.previewMode = false;
|
this.state.previewMode = false;
|
||||||
this.state.loading = false;
|
this.state.loading = false;
|
||||||
this.state.commentForm.content = '';
|
this.state.commentForm.content = '';
|
||||||
|
this.setState(this.state);
|
||||||
let form: any = document.getElementById(this.formId);
|
let form: any = document.getElementById(this.formId);
|
||||||
form.reset();
|
form.reset();
|
||||||
if (this.props.node) {
|
if (this.props.node) {
|
||||||
|
|
Loading…
Reference in a new issue