mirror of https://github.com/ElemeFE/element
Merge pull request #11265 from Leopoldthecoder/dev
Popover: execute focus on instance only if it is a functionpull/11266/head
commit
2c47c6a3eb
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue