Ghost tabs remain if the tab contents take too long to compute #7040
Labels
feature:st.tabs
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
I have an application where the amount of tabs depends on some user choice. If the user goes from a choice with more tabs to a choice with less tabs, the old, superfluous tabs remain until the page has completely loaded. Since my page takes quite some time to load, this is confusing to users - especially since the area isn't greyed out and the rest of the content has already be properly loaded.
Reproducible Code Example
Steps To Reproduce
No response
Expected Behavior
If the user goes from the choice that leads to more tabs to the choice with less tabs, one would expect the superfluous tabs to immediately disappear - not after the application has been loaded completely.
Current Behavior
After switching from the option with more tabs to the option with less tabs, only the new tabs are overwritten but the old tabs arent removed - not until the page has finished running.
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: