Closed jakst closed 1 year ago
Related #218?
Hi, thanks for reporting the issue.
The reason this doesn't works when using batch
is because the selectedTab
is updated before the new list of tabs is rendered and registered to Tabs.Root
.
So when the internal effect run to set the selected tab it doesn't find the new tab (at the moment) and fallback to the first one.
I don't have a solution for this currently except not using batch
.
Ok, I guess I can work around using batch. I see why that would be hard to solve on your end. Thanks for looking into it!
Describe the bug With controlled values for the Tabs component, it is not possible to add a new tab dynamically and select it at the same time. Instead the first tab is selected.
To Reproduce Steps to reproduce the behavior: