소스 검색

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