diff --git a/packages/ali-react-table/src/base-table/helpers/getRichVisibleRectsStream.tsx b/packages/ali-react-table/src/base-table/helpers/getRichVisibleRectsStream.tsx index f8930ff7d..fc3a2ca8a 100644 --- a/packages/ali-react-table/src/base-table/helpers/getRichVisibleRectsStream.tsx +++ b/packages/ali-react-table/src/base-table/helpers/getRichVisibleRectsStream.tsx @@ -134,7 +134,14 @@ function fromResizeEvent(element: HTMLElement | Window): Observable { const resizeObserver = new ResizeObserver((entries: ResizeObserverEntry[]) => { - subscriber.next(entries) + + window.requestAnimationFrame(() => { + if (!Array.isArray(entries) || !entries.length) { + return; + } + subscriber.next(entries) + }); + }) resizeObserver.observe(element as HTMLElement)