You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a dynamic menu using a recursive ng-template but it only appears to work properly for the first two levels.
If I build a static menu this all works as expected:
But if I try to use a recursive template, the last level is displayed below the parent not to the right, obscuring the items below, and hovering over the lowest level menu loses its parents:
Is there something wrong with the template code, or does nz-menu not support using recursive templates in this way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to build a dynamic menu using a recursive ng-template but it only appears to work properly for the first two levels.
If I build a static menu this all works as expected:
But if I try to use a recursive template, the last level is displayed below the parent not to the right, obscuring the items below, and hovering over the lowest level menu loses its parents:
Is there something wrong with the template code, or does nz-menu not support using recursive templates in this way?
Thanks,
Stackblitz Demo
Beta Was this translation helpful? Give feedback.
All reactions