Skip to content

Commit

Permalink
chore: useReelCells内のwindow.ResizeObserverの引数を最適化する
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Jan 9, 2025
1 parent bc46030 commit 7a47f28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/smarthr-ui/src/components/Table/useReelCells.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7a47f28

Please sign in to comment.