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
with standardui event triggers and server gets correct info which tab is selected.
with modernui event does not trigger so server never knows which resize method (by size or by scale) is selected.
with standardui, gradio assigns following event dynamically to all non-active tab items (which are html button elements) so it triggers on click.
with modernui, that event does not get assigned.
this is gradio template for gr.Tabs, you can see how on:click gets assigned dynamically
Issue Description
this seems a conceptual problem with modernui as we're rehosting buttons instead of tabs control so tabs control looses its functionality.
for example, event should be triggered in
modules/ui_sections.py:create_hires_input
, linewith standardui event triggers and server gets correct info which tab is selected.
with modernui event does not trigger so server never knows which resize method (by size or by scale) is selected.
with standardui, gradio assigns following event dynamically to all non-active tab items (which are html button elements) so it triggers on click.
with modernui, that event does not get assigned.
this is gradio template for gr.Tabs, you can see how on:click gets assigned dynamically
to properly solve this, we need to stop rehosting buttons from tabs and rehost entire tab control. not a small change.
Backend
Chrome (and derivatives)
Branch
Desktop
Version Platform Description
No response
Relevant log output
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: