toggle categories outside

This commit is contained in:
merdan 2024-05-17 17:00:33 +05:00
parent e6a90706de
commit 147f8f065a
1 changed files with 4 additions and 2 deletions

View File

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