kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'ios-autofocus' into 'develop'
Fix iOS autofocus bug, fixes #630 Closes #630 See merge request soapbox-pub/soapbox-fe!491merge-requests/492/merge
commit
010a8b5939
|
@ -166,8 +166,12 @@ class ComposeForm extends ImmutablePureComponent {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
const length = this.props.text.length;
|
||||
document.addEventListener('click', this.handleClick, true);
|
||||
this.setCursor(this.props.text.length); // Set cursor at end
|
||||
|
||||
if (length > 0) {
|
||||
this.setCursor(length); // Set cursor at end
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
|
Ładowanie…
Reference in New Issue