leap: check for focus before blurring
@@ -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();
}
