Kaynağa Gözat

Merge pull request #11265 from Leopoldthecoder/dev

Popover: execute focus on instance only if it is a function
Jikkai Xiao 7 yıl önce
ebeveyn
işleme
2c47c6a3eb
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      packages/popover/src/main.vue

+ 1 - 1
packages/popover/src/main.vue

@@ -90,7 +90,7 @@ export default {
         on(reference, 'focusin', () => {
           this.handleFocus();
           const instance = reference.__vue__;
-          if (instance && instance.focus) {
+          if (instance && typeof instance.focus === 'function') {
             instance.focus();
           }
         });