We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a609823 commit aa15c83Copy full SHA for aa15c83
packages/kit-headless/src/components/tabs/tabs.tsx
@@ -356,7 +356,9 @@ export const TabsImpl = component$((props: TabsProps & { tabs: TabInfo[] }) => {
356
}
357
358
function focusOnTab(index: number) {
359
- tabsRootElement?.children[0]?.children[index]?.focus();
+ const tabListElement = tabsRootElement?.children[0];
360
+ const tabToFocusOn = tabListElement?.children[index] as HTMLElement;
361
+ tabToFocusOn.focus();
362
363
});
364
0 commit comments