From cd9003061656e13c67e9108e3507160febde8138 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 29 Jan 2024 15:45:13 +0500 Subject: [PATCH] web: fix note title in toolbar not changing --- apps/web/src/components/editor/toolbar.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(