File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/kit-headless/src/components/tabs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const TabPanel = component$(({ ...props }: TabPanelProps) => {
17
17
const panelUID = useId ( ) ;
18
18
19
19
const matchedTabId = useComputed$ (
20
- ( ) => contextService . tabPanelsMap [ panelUID ] ?. index
20
+ ( ) => contextService . tabPanelsMap [ panelUID ] ?. tabId
21
21
) ;
22
22
23
23
useTask$ ( ( { cleanup } ) => {
@@ -42,7 +42,7 @@ export const TabPanel = component$(({ ...props }: TabPanelProps) => {
42
42
role = "tabpanel"
43
43
tabIndex = { 0 }
44
44
hidden = { isSelectedSignal . value ? undefined : true }
45
- aria-labelledby = { `tab-${ matchedTabId } ` }
45
+ aria-labelledby = { `tab-${ matchedTabId . value } ` }
46
46
class = { `${ isSelectedSignal . value ? 'is-hidden' : '' } ${
47
47
props . class ? ` ${ props . class } ` : ''
48
48
} `}
You can’t perform that action at this time.
0 commit comments