mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +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) => {
|
||||
if (newValue !== currentValue) {
|
||||
if (newValue !== currentValue || isNewItem) {
|
||||
save(newValue);
|
||||
}
|
||||
dismiss();
|
||||
|
Loading…
x
Reference in New Issue
Block a user