mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
Add visible
check to Tab (#7220)
* add visible check to TabItem * add changeset * remove hide class --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
faead1403c
commit
3b8dfc684d
6
.changeset/true-pears-decide.md
Normal file
6
.changeset/true-pears-decide.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/tabitem": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Add `visible` check to Tab
|
@ -31,7 +31,7 @@
|
||||
<div
|
||||
id={elem_id}
|
||||
class="tabitem {elem_classes.join(' ')}"
|
||||
style:display={$selected_tab === id ? "block" : "none"}
|
||||
style:display={$selected_tab === id && visible ? "block" : "none"}
|
||||
role="tabpanel"
|
||||
>
|
||||
<Column>
|
||||
|
Loading…
Reference in New Issue
Block a user