From 7a47f28e97d9da7ef796bc045320e528300f2d3a Mon Sep 17 00:00:00 2001 From: AtsushiM Date: Thu, 9 Jan 2025 11:43:59 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20useReelCells=E5=86=85=E3=81=AEwindow.R?= =?UTF-8?q?esizeObserver=E3=81=AE=E5=BC=95=E6=95=B0=E3=82=92=E6=9C=80?= =?UTF-8?q?=E9=81=A9=E5=8C=96=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/smarthr-ui/src/components/Table/useReelCells.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/smarthr-ui/src/components/Table/useReelCells.ts b/packages/smarthr-ui/src/components/Table/useReelCells.ts index 812a9435b8..15cc07413c 100644 --- a/packages/smarthr-ui/src/components/Table/useReelCells.ts +++ b/packages/smarthr-ui/src/components/Table/useReelCells.ts @@ -33,9 +33,7 @@ export const useReelCells = () => { currentRef.addEventListener('scroll', handleScroll) - const observer = new window.ResizeObserver(() => { - handleScroll() - }) + const observer = new window.ResizeObserver(handleScroll) observer.observe(currentRef)