Skip to content

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

mobile: render title after loaded

Ammar Ahmeddc7fcb67f055
diff --git a/packages/editor-mobile/src/components/title.tsx b/packages/editor-mobile/src/components/title.tsx
index 6df8b4a95..4b3fb928e 100644
--- a/packages/editor-mobile/src/components/title.tsx
+++ b/packages/editor-mobile/src/components/title.tsx
@@ -75,7 +75,7 @@ function Title({
};
}, [tab.id, titleRef]);
- return (
+ return loading ? null : (
<>
<div
ref={titleSizeDiv}
@@ -107,6 +107,7 @@ function Title({
rows={1}
contentEditable={!readonly}
disabled={readonly}
+ defaultValue={title}
style={{
height: 40,
minHeight: 40,