commit
0f3048776c
|
@ -163,7 +163,7 @@ export default {
|
|||
},
|
||||
focus() {
|
||||
const findFocusableElement = (container) => {
|
||||
return container.querySelector('[autofocus]');
|
||||
return container && container.querySelector('[autofocus]');
|
||||
};
|
||||
|
||||
let focusTarget = this.$slots.footer && findFocusableElement(this.footerContainer);
|
||||
|
|
|
@ -100,7 +100,7 @@ export default {
|
|||
},
|
||||
focus() {
|
||||
const findFocusableElement = (container) => {
|
||||
return container.querySelector('[autofocus]');
|
||||
return container && container.querySelector('[autofocus]');
|
||||
};
|
||||
|
||||
let focusTarget = this.$slots.default && findFocusableElement(this.content);
|
||||
|
|
Loading…
Reference in New Issue