Skip to content

Commit 018a060

Browse files
iobuhovleonardomendix
authored andcommitted
fix: make sure virtual scrolling works with total count
1 parent 386f975 commit 018a060

File tree

1 file changed

+5
-1
lines changed
  • packages/pluggableWidgets/gallery-web/src/components

1 file changed

+5
-1
lines changed

packages/pluggableWidgets/gallery-web/src/components/Gallery.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ export function Gallery<T extends ObjectItem>(props: GalleryProps<T>): ReactElem
8686
>
8787
<GalleryTopBar>{showTopPagination && pagination}</GalleryTopBar>
8888
{props.showHeader && <GalleryHeader aria-label={props.headerTitle}>{props.header}</GalleryHeader>}
89-
<GalleryContent hasMoreItems={props.hasMoreItems} setPage={props.setPage} isInfinite={!props.paging}>
89+
<GalleryContent
90+
hasMoreItems={props.hasMoreItems}
91+
setPage={props.setPage}
92+
isInfinite={props.paginationType === "virtualScrolling"}
93+
>
9094
{props.items.length > 0 && (
9195
<ListBox
9296
lg={props.desktopItems}

0 commit comments

Comments
 (0)