Merge pull request #3551 from urbit/mp/leap/safari-14-autofocus

leap: always blur and refocus input on mount
This commit is contained in:
matildepark 2020-09-23 22:58:47 -04:00 committed by GitHub
commit 2b723e9ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'