mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(menu): missing method call (#7065)
Fixes a method not being called, causing the check to always evaluate to true.
This commit is contained in:
committed by
mmalerba
parent
e4d48d709a
commit
2f1f0fd0b6
@@ -417,7 +417,7 @@ export class MdMenuTrigger implements AfterViewInit, OnDestroy {
|
||||
// Since clicking on the trigger won't close the menu if it opens a sub-menu,
|
||||
// we should prevent focus from moving onto it via click to avoid the
|
||||
// highlight from lingering on the menu item.
|
||||
if (this.triggersSubmenu) {
|
||||
if (this.triggersSubmenu()) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user