From 2162240132d871dcf1f1dccdcb50ab653254f947 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Mon, 21 May 2018 17:40:47 +0800 Subject: [PATCH] Popover: execute focus on instance only if it is a function --- packages/popover/src/main.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/popover/src/main.vue b/packages/popover/src/main.vue index bd5204703..3aebc39fc 100644 --- a/packages/popover/src/main.vue +++ b/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(); } });