TabMenu and Steps | All items with routerLink being highlighted #11028
Labels
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/primeng-tabmenu-demo-d47ewl?file=src/app/app.component.ts
Current behavior
When the
p-tabMenu
contains amodel
attribute that refers to an array containing items with arouterLink
, all these items are being highlighted mistakenly.Expected behavior
Only the menu item referred by the attribute
activeItem
should be highlited.This used to work correctly on PrimeNG 13.0.0.
Minimal reproduction of the problem with instructions
e.g. of the items array that leads to an error:
Please tell us about your environment:
Operating syste: Windows 10
IDE: IntelliJ
HTTP server: Angular live server
Angular version: 13.1.1
PrimeNG version: 13.0.4
Browser:
Microsoft Edge Version 90.0.818.41 (Official build) (64-bit)
Google Chrome Version 72.0.3626.81 (Official Build) (64-bit)
Language: TypeScript 4.4.4
Node (for AoT issues):
node --version
= v14.15.4The text was updated successfully, but these errors were encountered: