mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
chore(react/collections/board): fix add on blur if value not changed
This commit is contained in:
@@ -253,7 +253,7 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, multilin
|
||||
}
|
||||
}}
|
||||
onBlur={(newValue) => {
|
||||
if (newValue !== currentValue) {
|
||||
if (newValue !== currentValue || isNewItem) {
|
||||
save(newValue);
|
||||
}
|
||||
dismiss();
|
||||
|
||||
Reference in New Issue
Block a user