diff --git a/apps/client/src/widgets/scroll_padding.tsx b/apps/client/src/widgets/scroll_padding.tsx index 4ebb7f42d..d42098672 100644 --- a/apps/client/src/widgets/scroll_padding.tsx +++ b/apps/client/src/widgets/scroll_padding.tsx @@ -28,7 +28,7 @@ export default function ScrollPadding() { refreshHeight(); return () => observer.disconnect(); - }, [note]); // re-run when note changes + }, [ note, isEnabled ]); // re-run when note changes return (isEnabled ?