Commit 2c47c6a3 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by GitHub

Merge pull request #11265 from Leopoldthecoder/dev

Popover: execute focus on instance only if it is a function
parents 38a13de3 21622401
......@@ -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();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment