From 2bb3f23fb22b0ecd1e2495e29ebaece21880f021 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 10 Sep 2024 11:10:35 +0800 Subject: [PATCH] * dtable: fix animation frame timer not cancel in dtable. --- lib/dtable/src/components/dtable.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dtable/src/components/dtable.tsx b/lib/dtable/src/components/dtable.tsx index 5be2780b62..00177fc645 100644 --- a/lib/dtable/src/components/dtable.tsx +++ b/lib/dtable/src/components/dtable.tsx @@ -207,6 +207,10 @@ export class DTable extends Component { if (this._noAnimation) { clearTimeout(this._noAnimation); } + + if (this._rafId) { + cancelAnimationFrame(this._rafId); + } } resetState(props?: DTableOptions, init?: boolean) {