Skip to content

Commit

Permalink
fix(List): fix virtualized list items rerender (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Feb 28, 2024
1 parent 42f319c commit 4252620
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 @@ -401,7 +401,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 4252620

Please sign in to comment.