Skip to content

Commit

Permalink
* dtable: fix animation frame timer not cancel in dtable.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Sep 10, 2024
1 parent 2393825 commit 2bb3f23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dtable/src/components/dtable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ export class DTable extends Component<DTableOptions, DTableState> {
if (this._noAnimation) {
clearTimeout(this._noAnimation);
}

if (this._rafId) {
cancelAnimationFrame(this._rafId);
}
}

resetState(props?: DTableOptions, init?: boolean) {
Expand Down

0 comments on commit 2bb3f23

Please sign in to comment.