We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba9f9b commit 38cb27aCopy full SHA for 38cb27a
packages/circuit-ui/components/Tabs/components/Tab/Tab.tsx
@@ -56,7 +56,7 @@ export const Tab = forwardRef<HTMLButtonElement, TabProps>(
56
57
useEffect(() => {
58
if (selected) {
59
- tabRef?.current?.focus();
+ tabRef?.current?.focus({ preventScroll: true });
60
}
61
}, [selected]);
62
return (
0 commit comments