Feature Request: Show active tab in TabMenu with different Route-Defintion #1051
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Hello,
using TabMenu it's possible to define one Tab-Item like this:
{label: 'Home', icon: 'pi pi-fw pi-home', to: '/tabmenu'},
When using it that way, the active tab-item is shown correctly.
Yet, we use route with "to" like this:
to: { name: 'LocatorSubView'}
The route will be opened, but not be shown as active, because the "activeRoute" in TabMenu is defined with
and the path is not what's written in our to-property, which is why the comparison fails:
return this.activeRoute === item.to;
Is it possible for route-definitions like ours to also be shown as activated?
The text was updated successfully, but these errors were encountered: