-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
p-menu: Links are turned into groups #13297
Comments
Hi, The issue is not clear and the reproducer you've shared is the actual example in the live demo which does not replicate the issue. Could you please share a valid Stackblitz reproducer? |
We're unable to replicate your issue, if you are able to create a reproducer by using PrimeNG Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days. |
Sorry, StackBlitz did not save my changes I made to the example. I updated the example again. |
Hi, Thanks for updating the example, now I can see the bug. |
Hi @cetincakiroglu and @virtualmarc. |
Describe the bug
Top Level menu items from the model are turned from links to groups as soon as a group is added to the model.
If the model only contains url, routerLink or command Entries everything works fine, but as soon as a group entry with sub items is added, everything on the top level is turned to groups.
Environment
macOS 13.4
IntelliJ IDEA 20023.1.3
Reproducer
https://stackblitz.com/edit/8uujks?file=src%2Fapp%2Fdemo%2Fmenu-group-demo.ts
Angular version
16.0.0
PrimeNG version
16.0.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.1
Browser(s)
Chrome 114
Steps to reproduce the behavior
Expected behavior
Links should stay links and should not convert to groups.
This works fine with the Panel Menu but not with the Menu.
The text was updated successfully, but these errors were encountered: