Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix editor scroll bar hiding sometimes on startup

Abdullah Attafdea1807d2b5
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 1bb12ca71..ef268c470 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -769,6 +769,7 @@ function restoreScrollPosition(session: EditorSession) {
scrollContainer.style.minHeight = `${scrollPosition + 100}px`;
scrollContainer.scrollTop = scrollPosition;
});
+ scrollContainer.style.minHeight = "unset";
});
}
}