diff --git a/src/components/CompositeBar/CompositeBar.tsx b/src/components/CompositeBar/CompositeBar.tsx index eb42dee..5e99075 100644 --- a/src/components/CompositeBar/CompositeBar.tsx +++ b/src/components/CompositeBar/CompositeBar.tsx @@ -252,12 +252,12 @@ export const CompositeBar: FC = ({ {items.length !== 0 && ( {(size: Size) => { - const width = Number.isNaN(size.width) ? undefined : size.width; - const height = Number.isNaN(size.height) ? undefined : size.height; + const width = Number.isNaN(size.width) ? 0 : size.width; + const height = Number.isNaN(size.height) ? 0 : size.height; const {listItems, collapseItems} = getAutosizeListItems( items, - height || 0, + height, collapseItem, ); return (