Merge pull request #11265 from Leopoldthecoder/dev

Popover: execute focus on instance only if it is a function
pull/11266/head
Jikkai Xiao 2018-05-21 17:50:19 +08:00 committed by GitHub
commit 2c47c6a3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
});