提交 4fc81542 编写于 作者: G Gerschel

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.
上级 7e549468
...@@ -4,7 +4,7 @@ function gradioApp() { ...@@ -4,7 +4,7 @@ function gradioApp() {
} }
function get_uiCurrentTab() { function get_uiCurrentTab() {
return gradioApp().querySelector('.tabs button:not(.border-transparent)') return gradioApp().querySelector('#tabs button:not(.border-transparent)')
} }
function get_uiCurrentTabContent() { function get_uiCurrentTabContent() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册