some console errors fixed

This commit is contained in:
Burak Civan
2022-10-18 11:35:25 +03:00
parent 3faf578bd4
commit 7f4f376252
3 changed files with 11 additions and 7 deletions

View File

@ -189,8 +189,10 @@ export default {
let el = this.$refs.dropdownMenu;
let target = event.target;
if (el !== target && ! el.contains(target)) {
this.isOpen = false;
if (typeof el != "undefined") {
if (el !== target && ! el.contains(target)) {
this.isOpen = false;
}
}
},
},