浏览代码

Url: fix input focus

Artur Paikin 6 年之前
父节点
当前提交
3f9aa3bb7f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/plugins/Url/UrlUI.js

+ 1 - 1
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)
   }