mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-02 01:01:14 +00:00
Adding post title expanding on copy. Fixes #168
This commit is contained in:
parent
dba4b7bcfc
commit
66fd6b8ffb
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue