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 committed Apr 25, 2023
2 parents 0b94967 + 07e756a commit 6d1efd6
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 6d1efd6

Please sign in to comment.