Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
updated how tabs are presented in DOM with Gradio 3.23.
  • Loading branch information
GeorgLegato authored Apr 3, 2023
1 parent 22bcc7b commit d9fdb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function gradioApp() {
}

function get_uiCurrentTab() {
return gradioApp().querySelector('#tabs button:not(.border-transparent)')
return gradioApp().querySelector('#tabs button.selected')
}

function get_uiCurrentTabContent() {
Expand Down

0 comments on commit d9fdb52

Please sign in to comment.