You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a gr.Tab visibility is set to False, and then to True again, the tab stops sending events to the .select event listener. Also, the last tab triggers all the other tabs' events at once.
I tried with and without the gr.Tabs() block and setting the tab id but none works.
I'm using gr.update(visible=x) to change the visibility.
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
Run the following code and steps to reproduce the issue. It will create 10 tabs and a slider to select how many tabs to show. The console and a Textbox displays which tab is selected.
Launch the demo and click the different tabs. You will see the Textbox and console display the selected tab.
Move the slider to, for example, 5 and see the tabs disappear. Now move it back to 10 and see all the tabs again.
Now if you click the tabs 0 to 4 it works well, but if you click 5 to 8, it does not.
Also, look at the console and click the last tab. You will see how it triggers the events of tabs 5 to 9.
Describe the bug
If a
gr.Tab
visibility is set toFalse
, and then toTrue
again, the tab stops sending events to the.select
event listener. Also, the last tab triggers all the other tabs' events at once.I tried with and without the
gr.Tabs()
block and setting the tabid
but none works.I'm using
gr.update(visible=x)
to change the visibility.Have you searched existing issues? 🔎
Reproduction
Run the following code and steps to reproduce the issue. It will create 10 tabs and a slider to select how many tabs to show. The console and a Textbox displays which tab is selected.
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: