Skip to content

Commit 5dd6b02

Browse files
committed
fix showing initial active tab
1 parent a0b4e89 commit 5dd6b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/lib/src/components/common/tabs.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class _DashTabPane extends StatelessComponent {
131131
Component build(BuildContext context) {
132132
return div(
133133
id: panelId,
134-
classes: 'tab-pane',
134+
classes: ['tab-pane', if (isActive) 'active'].toClasses,
135135
attributes: {
136136
'role': 'tabpanel',
137137
'aria-labelledby': tabId,

0 commit comments

Comments
 (0)