toggle categories outside
This commit is contained in:
parent
e6a90706de
commit
147f8f065a
|
|
@ -237,9 +237,11 @@
|
|||
document.querySelector('a.categories').style.opacity = loading ? 0 : 1
|
||||
},
|
||||
handleClickOutside(event) {
|
||||
if (!this.$el.contains(event.target)) {
|
||||
if (!this.$el.contains(event.target) && this.cat.classList.contains("active")) {
|
||||
// Close the modal
|
||||
console.log('outside');
|
||||
//console.log('outside');
|
||||
|
||||
this.toggleCategoriesDomElements();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue