Skip to content

Commit

Permalink
Merge pull request #2490 from opossum-tool/fix-disable-list-scroll-an…
Browse files Browse the repository at this point in the history
…imation-on-first-render

fix: disable list scroll animation on first render
  • Loading branch information
mstykow committed Jan 12, 2024
2 parents b168c9e + 9e2f4b4 commit 6c5e20b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Frontend/Components/List/List.tsx
Expand Up @@ -71,6 +71,15 @@ export function List({
<Virtuoso
ref={ref}
fixedItemHeight={cardHeight}
initialTopMostItemIndex={
window?.process?.env.JEST_WORKER_ID // https://github.com/petyosi/react-virtuoso/issues/1001
? undefined
: {
index: indexToScrollTo,
behavior: 'auto',
align: 'center',
}
}
totalCount={length}
isScrolling={setIsScrolling}
style={{
Expand Down

0 comments on commit 6c5e20b

Please sign in to comment.