feat(board/relation): improve relation editing experience

This commit is contained in:
Elian Doran 2025-11-15 11:21:23 +02:00
parent 092a84693f
commit 0c616fecdf
No known key found for this signature in database

View File

@ -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();
}}
/>
)
}