Skip to content

Commit

Permalink
Merge pull request #3803 from udecode/fix/toc
Browse files Browse the repository at this point in the history
Fix scrolling container error.
  • Loading branch information
felixfeng33 authored Nov 24, 2024
2 parents 8d3449b + 61cf190 commit eb119cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/heading/src/react/hooks/useTocSideBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ export const useTocSideBar = ({

onContentScroll({ id, behavior, el });
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
[editor, onContentScroll]
);

return {
Expand Down

0 comments on commit eb119cb

Please sign in to comment.