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

Bug - Tabs - Tabs With separate content can not have activeKey different than the first one #11141

Open
carlosthe19916 opened this issue Oct 27, 2024 · 0 comments

Comments

@carlosthe19916
Copy link

Describe the problem
The Tab definition can be something like:

<Tabs activeKey={activeTabKey}

And the problem is that activeKey can not point to the second, third, fourth, etc. tab as the first time the Tab content is rendered, the tab content will always render the FIRST tab content.

Important to notice is that this problem only happens when the tab is With separate content e.g. https://www.patternfly.org/components/tabs#with-separate-content

How do you reproduce the problem?
Here is a codesandbox demonstrating the problem.

The code above will have:

  • The second tab selected
  • But rendering the content of the first tab. So here is the discrepancy

Image

Expected behavior
If the default activeKey is set to any value, then the tab content should render the appropriate content.

Is this issue blocking you?

Screenshots
If applicable, add screenshots to help explain the issue.

What is your environment?

  • OS: Fedora 40
  • Browser: Chrome
  • Version: 130

What is your product and what release date are you targeting?

Any other information?

@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Oct 27, 2024
@tlabaj tlabaj moved this from Needs triage to Ready to assign in PatternFly Issues Nov 5, 2024
@tlabaj tlabaj moved this from Ready to assign to Backlog in PatternFly Issues Nov 5, 2024
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

1 participant