mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Fix menu not closing after clicking on menu item (#11866)
This commit is contained in:
parent
b362b36e16
commit
c6f6722af7
1 changed files with 3 additions and 5 deletions
|
|
@ -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 () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue