Skip to content
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

TabMenu: First tab is always highlighted even when selected other tabs #3368

Closed
klsl2008 opened this issue Dec 5, 2022 · 1 comment
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2
Milestone

Comments

@klsl2008
Copy link

klsl2008 commented Dec 5, 2022

Describe the bug

In TabMenu, the first tab is always highlighted. The bug can be reproduced in the official website.

Reproducer

https://primefaces.org/primevue-v2/#/tabmenu

PrimeVue version

2.10.1

Vue version

2.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to official website: https://primefaces.org/primevue-v2/#/tabmenu
  2. In default section, click on "Calendar"
  3. Calendar tab is highlighted, but Home tab is also highlighted.

Expected behavior

Home tab should not be highlighted.

@klsl2008 klsl2008 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 5, 2022
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2 and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 5, 2022
@tugcekucukoglu tugcekucukoglu added this to the 2.10.2 milestone Dec 5, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Dec 5, 2022
@mathewGlenn
Copy link

I am working with a project that requires me to use vue2 and stumbled with this bug. I fixed it by not making the route of the first tabmenu item same as the parent route. The trick is to load the route of the first item onMounted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2
Projects
None yet
Development

No branches or pull requests

3 participants