From: Dessalines Date: Mon, 8 Feb 2021 16:36:16 +0000 (-0500) Subject: Adding post title expanding on copy. Fixes #168 X-Git-Url: http://these/git/readmes/%7BtotpUrl%7D?a=commitdiff_plain;h=66fd6b8ffbd72e4609b1f96148e7151a21438987;p=lemmy-ui.git Adding post title expanding on copy. Fixes #168 --- diff --git a/src/shared/components/post-form.tsx b/src/shared/components/post-form.tsx index 7f5c7fb..553a6e6 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); }