From 3f9aa3bb7fc7ce5814fe50268a6f88f5965d9f16 Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Wed, 13 Jun 2018 11:03:48 -0400 Subject: [PATCH] Url: fix input focus --- src/plugins/Url/UrlUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/Url/UrlUI.js b/src/plugins/Url/UrlUI.js index 2c6d24783..76ced639a 100644 --- a/src/plugins/Url/UrlUI.js +++ b/src/plugins/Url/UrlUI.js @@ -13,7 +13,7 @@ class UrlUI extends Component { // Component is mounted right away, but the tab panel might be animating // still, so input element is positioned outside viewport. This fixes it. setTimeout(() => { - if (!this.connectButton) return + if (!this.input) return this.input.focus({ preventScroll: true }) }, 150) }