This commit is contained in:
parent
c10105ad75
commit
4688968a32
1 changed files with 3 additions and 1 deletions
|
@ -820,7 +820,9 @@ impl UIWidget for TabWidget {
|
|||
|
||||
div id=(format!("#tab_content_{tab_id}")) {
|
||||
@for (_, id, body) in &self.content {
|
||||
div class="hidden rounded-lg" id=(id) role="tabpanel" aria-labelledby=(format!("{id}_tab")) {
|
||||
div class=(format!("{} rounded-lg",
|
||||
if *id == self.active { "" } else { "hidden" }
|
||||
)) id=(id) role="tabpanel" aria-labelledby=(format!("{id}_tab")) {
|
||||
(body)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue