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/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%7BpictshareAvatarThumbnail%28admin.avatar%29%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); }