PanelMenu active route is not highlighting #1301
Replies: 6 comments 1 reply
-
|
Hi, Sorry for the latency, could you please share a stackblitz example so we can identify the issue? |
Beta Was this translation helpful? Give feedback.
-
|
I seem to have the same problem. Even if we specify the routerLink: "/app/sales" and the routerLinkActiveOptions: {exact : true}, if I go directly to the route {base_URL}/app/sales, the Menu Item which matches the exact routeLink is not being activated. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Guys it seems to be an issue. It seems like they don't care about the issue. I have moved on and implemented my own menu in a very simple way. Though note that it works on older primer ng version |
Beta Was this translation helpful? Give feedback.
-
|
I am currently facing a similar issue after migrating from PrimeNG 17 to 18. With v17, the current active route would be highlighted in the Menu. But now with v18, no menu item is being highlighted at all. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I'm using v21 and this issue persists. While PrimeNG's documentation includes variables for this state, they aren't connected to the .p-menubar-item-link-active {
--p-menubar-item-active-background: /*your color here*/
--p-menubar-item-active-border.radius: /*your size here*/ <== I missed this one (custom variable)
background-color: var(--p-menubar-item-active-background);
border-radius: var(--p-menubar-item-active-border.radius);
} |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
I'm using prime-ng angular version 17 (both).
So im trying to use sidebar with panelmenu. I would like to highlight the menu when it is clicked or if its in the route. I just want to know this, Does the PanelMenu component highlight the current menu or submenu that's in the route by default ? if yes its not working. Here is the code.
am i doing something wrong
Beta Was this translation helpful? Give feedback.
All reactions