Adding post title expanding on copy. Fixes #168

This commit is contained in:
Dessalines 2021-02-08 11:36:16 -05:00
parent dba4b7bcfc
commit 66fd6b8ffb

View file

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