Skip to content

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

web: fix note title in toolbar not changing

Abdullah Attacd9003061656
diff --git a/apps/web/src/components/editor/toolbar.jsx b/apps/web/src/components/editor/toolbar.jsx
index 2bb5b4329..2304e5e4b 100644
--- a/apps/web/src/components/editor/toolbar.jsx
+++ b/apps/web/src/components/editor/toolbar.jsx
@@ -94,8 +94,7 @@ function Toolbar() {
}, [isTitleVisible]);
useEffect(() => {
- if (onScrollTitleRef.current)
- onScrollTitleRef.current.defaultValue = title;
+ if (onScrollTitleRef.current) onScrollTitleRef.current.value = title;
}, [title]);
const tools = useMemo(