material-design-lite
material-design-lite copied to clipboard
Is there an way to prevent the menu closing when an item is clicked
trafficstars
Is there a way to prevent the closing of the mdl-menu once the mdl-menu__item is clicked I already tried adding preventDefault and stopPropagation and I did not manage to solve this.
Thank You
you can remove the click event handler from a menu
document.querySelector('.mdl-menu__item').removeEventListener('click', document.querySelector('.mdl-menu').MaterialMenu.boundItemClick_)