fix(react/note_title): title shown on empty widget pane

This commit is contained in:
Elian Doran
2025-08-21 12:15:12 +03:00
parent 033e90f8b7
commit 9e947f742d

View File

@@ -41,7 +41,7 @@ export default function NoteTitleWidget() {
return ( return (
<div className="note-title-widget"> <div className="note-title-widget">
<FormTextBox {note && <FormTextBox
autocomplete="off" autocomplete="off"
currentValue={(!isReadOnly ? title : navigationTitle) ?? ""} currentValue={(!isReadOnly ? title : navigationTitle) ?? ""}
placeholder={t("note_title.placeholder")} placeholder={t("note_title.placeholder")}
@@ -52,7 +52,7 @@ export default function NoteTitleWidget() {
newTitle.current = newValue; newTitle.current = newValue;
spacedUpdate.scheduleUpdate(); spacedUpdate.scheduleUpdate();
}} }}
/> />}
</div> </div>
); );
} }