소스 검색

Adjust query selector to actually get the popover now

flxy 2 년 전
부모
커밋
aea9f92d39
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/react_button/react_button.js

+ 1 - 1
src/components/react_button/react_button.js

@@ -41,7 +41,7 @@ const ReactButton = {
     },
     focusInput () {
       this.$nextTick(() => {
-        const input = this.$el.querySelector('input')
+        const input = document.querySelector('.popover.ReactButton').querySelector('input')
         if (input) input.focus()
       })
     },