Merge pull request #171 from LemmyNet/post_title_expand

Adding post title expanding on copy. Fixes #168
This commit is contained in:
Dessalines 2021-02-08 11:47:14 -05:00 committed by GitHub
commit 2080eb4597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -399,6 +399,10 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
MAX_POST_TITLE_LENGTH MAX_POST_TITLE_LENGTH
); );
i.state.suggestedTitle = undefined; i.state.suggestedTitle = undefined;
setTimeout(() => {
let textarea: any = document.getElementById('post-title');
autosize.update(textarea);
}, 10);
i.setState(i.state); i.setState(i.state);
} }