mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
leap: check for focus before blurring
This commit is contained in:
parent
cdbbaf0bda
commit
332b2bc481
@ -8,7 +8,7 @@ export class OmniboxInput extends Component {
|
||||
<input
|
||||
ref={(el) => {
|
||||
this.input = el;
|
||||
if (el) {
|
||||
if (el && document.activeElement.isSameNode(el)) {
|
||||
el.blur();
|
||||
el.focus();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user