mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 05:45:46 +03:00
omnibox: fix autofocus on safari
This commit is contained in:
parent
7d1c53ea44
commit
8230b02ad3
@ -32,6 +32,8 @@ export class Omnibox extends Component {
|
||||
if (prevProps && this.props.show && prevProps.show !== this.props.show) {
|
||||
Mousetrap.bind('escape', () => this.props.api.local.setOmnibox());
|
||||
document.addEventListener('mousedown', this.handleClickOutside);
|
||||
const touchstart = new Event('touchstart');
|
||||
this.input.dispatchEvent(touchstart);
|
||||
this.input.focus();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user