mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 21:44:31 +01:00
feat(board/relation): improve relation editing experience
This commit is contained in:
parent
092a84693f
commit
0c616fecdf
@ -292,8 +292,16 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, mode, is
|
|||||||
hideAllButtons: true,
|
hideAllButtons: true,
|
||||||
allowCreatingNotes: true
|
allowCreatingNotes: true
|
||||||
}}
|
}}
|
||||||
onKeyDown={onKeyDown}
|
onKeyDown={(e) => {
|
||||||
onBlur={onBlur}
|
if (e.key === "Escape") {
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
onBlur={() => dismiss()}
|
||||||
|
noteIdChanged={(newValue) => {
|
||||||
|
save(newValue);
|
||||||
|
dismiss();
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user