mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
Merge pull request #3551 from urbit/mp/leap/safari-14-autofocus
leap: always blur and refocus input on mount
This commit is contained in:
commit
2b723e9ac1
@ -8,6 +8,10 @@ export class OmniboxInput extends Component {
|
||||
<input
|
||||
ref={(el) => {
|
||||
this.input = el;
|
||||
if (el && document.activeElement.isSameNode(el)) {
|
||||
el.blur();
|
||||
el.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
className='ba b--transparent w-100 br2 white-d bg-gray0-d inter f9 pa2'
|
||||
|
Loading…
Reference in New Issue
Block a user