From 2f1f0fd0b6dd34d2eb036bbee024c4af1b83fe3e Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 14 Sep 2017 18:27:02 +0200 Subject: [PATCH] chore(menu): missing method call (#7065) Fixes a method not being called, causing the check to always evaluate to true. --- src/lib/menu/menu-trigger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/menu/menu-trigger.ts b/src/lib/menu/menu-trigger.ts index 9bceb8282e8..e3493c707ac 100644 --- a/src/lib/menu/menu-trigger.ts +++ b/src/lib/menu/menu-trigger.ts @@ -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(); } }