Commit 21622401 authored by Leopoldthecoder's avatar Leopoldthecoder

Popover: execute focus on instance only if it is a function

parent 38a13de3
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
on(reference, 'focusin', () => { on(reference, 'focusin', () => {
this.handleFocus(); this.handleFocus();
const instance = reference.__vue__; const instance = reference.__vue__;
if (instance && instance.focus) { if (instance && typeof instance.focus === 'function') {
instance.focus(); 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