Components: Mat Menu is broken

Created on 6 Feb 2018  路  4Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Mat Menu is not opening on Menu Menu Trigger open menu.

What is the current behavior?

It breaks in 5.2.0 release

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

Just update angular/material dependency to latest version or 5.2.0.It will break.
Use Mat menu. Once you click on a button that triigers mat-menu it will throw an exception that certain method is not a function.(ERROR TypeError: this._keyManager.setFocusOrigin is not a function
at MatMenu.focusFirstItem)

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Material 5.2.0

Is there anything else we should know?

Most helpful comment

Thanks adgoncal. got the problem. Need to update the angular/cdk dependency to 5.2.0 too. Its working now.

All 4 comments

Can you check this. https://stackblitz.com/angular/oaqapeegmox. It's the same code from angular/ material examples, but i have updated the angular/material dependency to 5.2.0.

Thanks adgoncal. got the problem. Need to update the angular/cdk dependency to 5.2.0 too. Its working now.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianobrasil picture julianobrasil  路  3Comments

LoganDupont picture LoganDupont  路  3Comments

vitaly-t picture vitaly-t  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

xtianus79 picture xtianus79  路  3Comments