Skip to content

Commit

Permalink
fix(List): fix virtualized list items rerender (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Feb 7, 2024
1 parent f2e4662 commit 8c45f7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ export class List<T = unknown> extends React.Component<ListProps<T>, ListState<T
}

private renderVirtualizedContainer() {
const items = this.getItems();
// Otherwise, react-window will not update the list items
const items = [...this.getItems()];

if (this.props.sortable) {
return (
Expand Down

0 comments on commit 8c45f7c

Please sign in to comment.