-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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 indicator in Tabs behaves wrong when tabs are dynamically changed #8379
Comments
We might want to change this logic: |
@oliviertassinari Would it be too bad performance to remove the if statement arround :-) ? I would really like to contribute but is relativly new in the open source world :-) Is there any guides to start contributing in generel :-) ? |
@thupi This issue might not have been the simpler issue to start contributing with. I have been doing some cleanup along the way. Thanks for your interest. Don't miss the CONTRIBUTING.md file and the issues with the |
Im getting similar issue in production build. it working as expected on dev build. but when i use production build, indicator highlighting 2nd tab(my case). but once i start clicking the tabs everything works fine. any suggestions or workarounds. i tried v0.19.4, it worked great in production build too. Thanks.. |
The problem is only in indicator, the value props is changing as expected, I am having the same problem of the guy above. Here it is my component:
|
@lucas-viewup You can try the |
I had the very same problem as @lucas-viewup and @rlyle. My problem was that I was using functions as values for the tabs and that is not supported although the documentation for The problem is that the backing implementation is using an object to store the values. Thus the values must provide an unique
In my case, all of the values were converted to the following
This string representation was only produced in the production build and during development time the values were unique. |
@oliviertassinari Hey, I know you're busy, but I noticed I didn't highlight you in my previous comment, so I just wanted to make sure you noticed my comment. |
@ljani I confirm the issue you are facing. Yes, using a |
@oliviertassinari Great! I'll try and see if I can get something done next week. |
Expected Behavior
The tab indicator must always show the selected tab
Current Behavior
When the number of tabs in a tab menu changes the indicator have a wrong position until next interaction such as clicking a new tab.
Steps to Reproduce (for bugs)
Context
I Noticed this issue when trying to remove some tabs based on the users permission role. I quickly realised that the indicator was not in sync with the amount of tabs inside the menu.
Reproduction Environment
Your Environment
The text was updated successfully, but these errors were encountered: