mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 15:39:25 +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
|
@ -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