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