From 66fd6b8ffbd72e4609b1f96148e7151a21438987 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 8 Feb 2021 11:36:16 -0500 Subject: [PATCH] Adding post title expanding on copy. Fixes #168 --- src/shared/components/post-form.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shared/components/post-form.tsx b/src/shared/components/post-form.tsx index 7f5c7fba..553a6e6a 100644 --- a/src/shared/components/post-form.tsx +++ b/src/shared/components/post-form.tsx @@ -399,6 +399,10 @@ export class PostForm extends Component { MAX_POST_TITLE_LENGTH ); i.state.suggestedTitle = undefined; + setTimeout(() => { + let textarea: any = document.getElementById('post-title'); + autosize.update(textarea); + }, 10); i.setState(i.state); }