leap: check for focus before blurring

This commit is contained in:
Matilde Park 2020-09-23 17:24:39 -04:00
parent cdbbaf0bda
commit 332b2bc481

View File

@ -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();
}