Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: revert #9971
Reverts the changes from #9971, because they break the case where a mat-menu is placed inside another mat-menu, causing the keyboard controls to be thrown off and nested menus not to work. Having a solution that supports both cases will require moving some more code around.

Fixes #10081.
  • Loading branch information
crisbeto committed Feb 22, 2018
commit 1b4e9e9abc7e2e530aea4b1bda697aee5dadff45
2 changes: 1 addition & 1 deletion src/lib/menu/menu-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class MatMenu implements OnInit, AfterContentInit, MatMenuPanel, OnDestro
@ViewChild(TemplateRef) templateRef: TemplateRef<any>;

/** List of the items inside of a menu. */
@ContentChildren(MatMenuItem, {descendants: true}) items: QueryList<MatMenuItem>;
@ContentChildren(MatMenuItem) items: QueryList<MatMenuItem>;

/**
* Menu content that will be rendered lazily.
Expand Down