mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 13:34:30 +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,
|
||||
allowCreatingNotes: true
|
||||
}}
|
||||
onKeyDown={onKeyDown}
|
||||
onBlur={onBlur}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Escape") {
|
||||
dismiss();
|
||||
}
|
||||
}}
|
||||
onBlur={() => dismiss()}
|
||||
noteIdChanged={(newValue) => {
|
||||
save(newValue);
|
||||
dismiss();
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user