Skip to content

Commit

Permalink
fix(List): fix onSortEnd method (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Apr 3, 2024
1 parent d8b71e9 commit 1567248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,12 @@ export class List<T = unknown> extends React.Component<ListProps<T>, ListState<T

private onSortEnd = (result: DropResult) => {
if (!result.destination) {
this.setState({sorting: false});
return;
}

if (result.source.index === result.destination.index) {
this.setState({sorting: false});
return;
}

Expand Down

0 comments on commit 1567248

Please sign in to comment.