-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
bug(menu): nested menu issues with recursive ng-template #7542
Comments
It looks like this is working as of beta.12 as seen here Are you still seeing this issue? |
Closing as it appears this issue is no longer occuring |
@josephperrott It does not work in the provided example. Even with the latest version. Can you reopen this one? |
I think the goal is to keep the previous menus on screen, to provide visual guidance to the user about where in the menu they've come from, and also to provide them with the opportunity to go back up the menu hierarchy without closing the menu to reopen at the top-most level. |
@softwareCobbler The poster isnt trying to hide the previous items in the menu, but trying to be able to generate a menu recursively. |
This hack helped me, I didn't spend much time on this answer(have low), hence you will have to understand this to make it work, but still it may help you if you dig in. For angular team: this solution breaks if
is wrapped in template Parts of solution:
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
I've tested with the latest changes from #6766, but this is still not fixed.
What is the expected behavior?
It should be possible to create a nested menu from a JSON object without knowing the menu's depth in advance.
What is the current behavior?
You can't, because the recursive templates seem to cause issues with the nested menu.
What are the steps to reproduce?
Had to use StackBlitz instead of Plunkr, because Plunkr's having issues.
StackBlitz: https://stackblitz.com/edit/angular-material2-issue-7p1tik
Note: Since StackBlitz is using the NPM version, and not the snapshot build, even the non-recursive version requires you to click to expand sub-menus rather than hover.
What is the use-case or motivation for changing an existing behavior?
It'd be nice to be able to define a single JSON object describing a nested menu structure.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All.
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: