mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Fix menu not closing after clicking on menu item (#11866)
This commit is contained in:
@@ -834,13 +834,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
closeMenu () {
|
closeMenu () {
|
||||||
|
Array.from(document.getElementsByClassName('droppable')).forEach(droppableElement => {
|
||||||
|
this.closeDropdown(droppableElement);
|
||||||
|
});
|
||||||
if (this.isMobile()) {
|
if (this.isMobile()) {
|
||||||
this.menuIsOpen = false;
|
this.menuIsOpen = false;
|
||||||
|
|
||||||
Array.from(document.getElementsByClassName('droppable')).forEach(droppableElement => {
|
|
||||||
droppableElement.classList.remove('down');
|
|
||||||
droppableElement.lastChild.style.maxHeight = 0;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isMobile () {
|
isMobile () {
|
||||||
|
|||||||
Reference in New Issue
Block a user