Skip to content

Commit 1a1e335

Browse files
committed
feat: VirtualizedList - add default min-height as 0 for proper rendering of the list
1 parent 138e191 commit 1a1e335

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Shared/Components/VirtualizedList/VirtualizedList.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { VIRTUALIZED_LIST_ROOT_ID, VIRTUALIZED_LIST_ROOT_Z_INDEX } from './Virtu
55
import { VirtualizedListItem, VirtualizedListProps } from './VirtualizedList.types'
66

77
export const VirtualizedList = <ListKeys extends string | number, ExtendedType extends object>({
8+
className,
89
items,
910
renderItem,
1011
...restProps
@@ -56,6 +57,7 @@ export const VirtualizedList = <ListKeys extends string | number, ExtendedType e
5657
return (
5758
<AutoSizedStickyTree
5859
{...restProps}
60+
className={`mh-0 ${className || ''}`}
5961
renderRoot={false}
6062
root={root}
6163
getChildren={getChildren}

0 commit comments

Comments
 (0)