Skip to content

Commit

Permalink
Merge pull request #21967 from liwn9527/its9527/fix-control-missing
Browse files Browse the repository at this point in the history
fix: controls missing when navigating from story
  • Loading branch information
valentinpalkovic authored and shilman committed May 3, 2023
1 parent 4326882 commit 9e11042
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/ui/components/src/tabs/tabs.hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,7 @@ export function useList(list: ChildrenList) {
const newInvisibleList = list.filter((item) => {
const { id } = item;
const tabButton = tabRefs.current.get(id);

if (!tabButton) {
return false;
}
const { width: tabWidth } = tabButton.getBoundingClientRect();
const { width: tabWidth = 0 } = tabButton?.getBoundingClientRect() || {};

const crossBorder = x + widthSum + tabWidth > rightBorder;

Expand Down

0 comments on commit 9e11042

Please sign in to comment.