mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
Merge pull request #171 from LemmyNet/post_title_expand
Adding post title expanding on copy. Fixes #168
This commit is contained in:
commit
2080eb4597
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue