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

Component Tabs bugs with controlled mode on first change #3063

Closed
1 of 3 tasks
PlayeurZero opened this issue Nov 18, 2024 · 1 comment
Closed
1 of 3 tasks

Component Tabs bugs with controlled mode on first change #3063

PlayeurZero opened this issue Nov 18, 2024 · 1 comment

Comments

@PlayeurZero
Copy link

Description

When I create a controlled tabs, during the first onValueChange call, I do not change the index and the Tabs.Content unmounts when it shouldn't.

Link to Reproduction

https://stackblitz.com/edit/chakra-ui-v3-o9atp5?file=src%2FApp.tsx

Steps to reproduce

  1. Click on "Second tab"
  2. The text "First panel" disappears when it shouldn't

Chakra UI Version

3.1.2

Browser

Firefox 132.0.2 (latest), Chromium 130.0.6723.116

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

Initial render is ok :

image

Click on "Second tab" (text has disappeared)

image

@segunadebayo segunadebayo transferred this issue from chakra-ui/chakra-ui Nov 18, 2024
@PlayeurZero
Copy link
Author

#3065

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

No branches or pull requests

1 participant