|
|
|
@ -62,6 +62,12 @@ function openMenu(menu:JQuery) { |
|
|
|
|
// when clicking on something, which is not the menu, close the menu
|
|
|
|
|
jQuery('html').on('click', { menu: menu.get(0) }, closeMenu); |
|
|
|
|
}); |
|
|
|
|
const scrollableContainer = dropDown.scrollParent()[0]; |
|
|
|
|
if (scrollableContainer) { |
|
|
|
|
jQuery(scrollableContainer).animate({ |
|
|
|
|
scrollTop: scrollableContainer.scrollHeight, |
|
|
|
|
}, 150); |
|
|
|
|
} |
|
|
|
|
dropDown.addClass('open'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|