mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 23:59:02 +02:00
chore(react/collections/board): fix add on blur if value not changed
This commit is contained in:
parent
c53e927a55
commit
cd3663e041
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user