Skip to content

Tabs demo - selected tab jumps back to first tab #11715

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

Open
srambach opened this issue Mar 25, 2025 · 2 comments
Open

Tabs demo - selected tab jumps back to first tab #11715

srambach opened this issue Mar 25, 2025 · 2 comments

Comments

@srambach
Copy link
Member

Describe the problem
In the example for tabs linked to nav elements, after clicking to a tab other than the first, the view starts to jump back to the leftmost tab immediately after clicking another one.

This bug exists in V5 as well as V6.

Reported by @mshriver

@srambach srambach removed the PF Team label Mar 25, 2025
@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Mar 25, 2025
@thatblindgeye thatblindgeye changed the title Bug - Tabs demo - selected tab jumps back to first tab Tabs demo - selected tab jumps back to first tab Mar 27, 2025
@thatblindgeye thatblindgeye moved this from Needs triage to Backlog in PatternFly Issues Mar 27, 2025
@thatblindgeye
Copy link
Contributor

We should try to make this example more functional to convey the intent, but if it is too messy/skirts too much on demo territory we should just update the example description to state that the example doesn't handle routing and it will be up to the consumer.

@mshriver
Copy link

https://github.com/ibutsu/ibutsu-server/pull/621/files#diff-c0da628a6378ea38af6d8d97b5dc617a202a9e673f8ab5ff6c28b57662b39de1

Here is an amateur's custom hook to handle an activeTab state and onTabSelect hook, but I dropped the href attribute for the Tab component to do so. If this is reasonable as a PF demo I can pull the commit out into the demo code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants