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 5eec54e commit 2720189Copy full SHA for 2720189
packages/react/src/components/Tabs/Tabs.tsx
@@ -1216,7 +1216,7 @@ const Tab = forwardRef<HTMLElement, TabProps>(function Tab(
1216
1217
useLayoutEffect(() => {
1218
function handler() {
1219
- const elementTabId = document.getElementById(`${id}`);
+ const elementTabId = document.getElementById(`${id}`) || tabRef.current;
1220
const newElement = elementTabId?.getElementsByClassName(
1221
`${prefix}--tabs__nav-item-label`
1222
)[0];
0 commit comments