Skip to content

Commit 2f1f0fd

Browse files
crisbetommalerba
authored andcommitted
chore(menu): missing method call (#7065)
Fixes a method not being called, causing the check to always evaluate to true.
1 parent e4d48d7 commit 2f1f0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/menu/menu-trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class MdMenuTrigger implements AfterViewInit, OnDestroy {
417417
// Since clicking on the trigger won't close the menu if it opens a sub-menu,
418418
// we should prevent focus from moving onto it via click to avoid the
419419
// highlight from lingering on the menu item.
420-
if (this.triggersSubmenu) {
420+
if (this.triggersSubmenu()) {
421421
event.preventDefault();
422422
}
423423
}

0 commit comments

Comments
 (0)