mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +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) => {
|
onBlur={(newValue) => {
|
||||||
if (newValue !== currentValue) {
|
if (newValue !== currentValue || isNewItem) {
|
||||||
save(newValue);
|
save(newValue);
|
||||||
}
|
}
|
||||||
dismiss();
|
dismiss();
|
||||||
|
|||||||
Reference in New Issue
Block a user