summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-form.tsx
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-07-15 22:56:46 -0700
committerDessalines <happydooby@gmail.com>2019-07-15 22:56:46 -0700
commit4235224a8c5a3cff42bcd0643d37ec6573f7a8bf (patch)
tree8a9db81fe8e9577710c322fc80144dad8773d50f /ui/src/components/comment-form.tsx
parentcb8697eb1191a2213813c2f44bbd114e20f55fb0 (diff)
Adding collapse comments
- Fixes #179
Diffstat (limited to 'ui/src/components/comment-form.tsx')
-rw-r--r--ui/src/components/comment-form.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx
index a69ae06f..5181e45e 100644
--- a/ui/src/components/comment-form.tsx
+++ b/ui/src/components/comment-form.tsx
@@ -84,6 +84,8 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
if (i.props.node) {
i.props.onReplyCancel();
}
+
+ autosize.update(document.querySelector('textarea'));
}
handleCommentContentChange(i: CommentForm, event: any) {