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

Tabs: Tab Change only triggered when clicking Text #6926

Open
Mettbrot opened this issue Dec 5, 2024 · 2 comments
Open

Tabs: Tab Change only triggered when clicking Text #6926

Mettbrot opened this issue Dec 5, 2024 · 2 comments
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback

Comments

@Mettbrot
Copy link

Mettbrot commented Dec 5, 2024

Describe the bug

When unsing the Tabview with Vue Router, the Routing is only triggered when clicking on the Text of the Button, not on the Button itsself. The UI changes the Tab, but no routing occurs.
A workaround is described here: #6010

Reproducer

https://stackblitz.com/edit/zpgc3a-v2fp5p

PrimeVue version

4.2.4

Vue version

4.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

Firefox 128.5.1esr

Steps to reproduce the behavior

  • Click on the Text of a Tab -> Routing occurs 🆗
  • Click beneeth the text of a Tab -> Tab changes, but routing does not occur ❌

Expected behavior

The change of a tab should also navigate.

@Mettbrot Mettbrot 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, 2024
@tugcekucukoglu tugcekucukoglu added Resolution: Help Wanted Issue or pull request requires extra help and feedback 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 10, 2024
Copy link

Due to PrimeVue team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

@ItaloCanturil
Copy link

ItaloCanturil commented Dec 13, 2024

I'm trying to think of a solution to this issue, first I tried changing the event to the Tab tag and using the example from the first issue but lost the button styles, I want know if this is a good way to solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
None yet
Development

No branches or pull requests

3 participants