-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md-menu does not display properly inside md-list #5120
Comments
CC @e111077 for menu anchor expertise |
Working on Also working on Workaround for now is to use |
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 575301929
related #5120 PiperOrigin-RevId: 580293404
What is affected?
Component
Description
When using the md-list in conjunction with a md-menu, e.g. a three-dot menu for context actions, I would expect the md-menu to display its content and correctly position itself to the provided anchor.
If I create a menu for every md-list-item, e.g. with ngFor in Angular, the menu positions istelf correctly at the anchor element in the end-slot but only renders inside the md-list-item. Any overflow from the menu gets cut off.
If I use a single menu for all md-list-items and change out the anchor element, the menu is shown completely but the positioning appears to be broken when using the default absolute positioning of the menu.
Reproduction
Links to Stackblitz for both approaches
Single Menu
Multiple Menus
Workaround
Setting the positioning fixed property on the md-menu fixes the positioning problem in the single menu approach.
I've not found a workaround for the multiple menu approach, if it is even vallid.
Is this a regression?
Yes. This used to work, but now it doesn't.
Affected versions
1.0.1
Browser/OS/Node environment
Chrome, Safari, Firefox
The text was updated successfully, but these errors were encountered: