You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
When you open a menu and you do not have a ng-click before the md-menu-contents tag it will get the first ng-click that may exist within the menu itself. I was using data-ng-click to open my menu which is not being picked up by the init function. I have a fix for this and its adding in the data-ng-click into the querySelector, an example is
Change To:
triggerElement = $element[0].querySelector('[data-ng-click],[ng-click],[data-ng-mouseenter],[ng-mouseenter]');
this is all within the init function in the MenuController. I have tested this within my project and it seems to of fixed the issue for me. I hope this helps.
When you open a menu and you do not have a ng-click before the md-menu-contents tag it will get the first ng-click that may exist within the menu itself. I was using data-ng-click to open my menu which is not being picked up by the init function. I have a fix for this and its adding in the data-ng-click into the querySelector, an example is
Current:
triggerElement = $element[0].querySelector('[ng-click],[ng-mouseenter]');
Change To:
triggerElement = $element[0].querySelector('[data-ng-click],[ng-click],[data-ng-mouseenter],[ng-mouseenter]');
this is all within the init function in the MenuController. I have tested this within my project and it seems to of fixed the issue for me. I hope this helps.