mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix(react/note_title): title shown on empty widget pane
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user