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:
Kristiyan Kostadinov
2017-09-14 18:27:02 +02:00
committed by mmalerba
parent e4d48d709a
commit 2f1f0fd0b6
+1 -1
View File
@@ -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();
}
}