aboutsummaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
authorGerschel <Gerschel_Payne@hotmail.com>2023-01-03 23:25:34 -0800
committerGerschel <Gerschel_Payne@hotmail.com>2023-01-03 23:25:34 -0800
commit4fc81542077af73610279ad7b6b26e38718a0f81 (patch)
tree73a875afaee519871acb4b1a733f501fa062a2af /script.js
parent7e549468b3d01e6cdf6d07d00c2719c1a5787517 (diff)
better targetting, class tabs was autoassigned
I moved a preset manager into quicksettings, this function was targeting my component instead of the tabs. This is because class tabs is autoassigned, while element id #tabs is not, this allows a tabbed component to live in the quicksettings.
Diffstat (limited to 'script.js')
-rw-r--r--script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/script.js b/script.js
index 9748ec90..0e117d06 100644
--- a/script.js
+++ b/script.js
@@ -4,7 +4,7 @@ function gradioApp() {
}
function get_uiCurrentTab() {
- return gradioApp().querySelector('.tabs button:not(.border-transparent)')
+ return gradioApp().querySelector('#tabs button:not(.border-transparent)')
}
function get_uiCurrentTabContent() {