diff --git a/packages/react/src/components/Tabs/Tabs.tsx b/packages/react/src/components/Tabs/Tabs.tsx index fcecf77d7b7f..b98a1e4a3026 100644 --- a/packages/react/src/components/Tabs/Tabs.tsx +++ b/packages/react/src/components/Tabs/Tabs.tsx @@ -1216,7 +1216,7 @@ const Tab = forwardRef(function Tab( useLayoutEffect(() => { function handler() { - const elementTabId = document.getElementById(`${id}`); + const elementTabId = document.getElementById(`${id}`) || tabRef.current; const newElement = elementTabId?.getElementsByClassName( `${prefix}--tabs__nav-item-label` )[0];