Skip to content

Build your personal knowledge base with Trilium Notes

chore(react/collections/board): fix add on blur if value not changed

Elian Dorancd3663e041c0
diff --git a/apps/client/src/widgets/collections/board/index.tsx b/apps/client/src/widgets/collections/board/index.tsx
index 3475e3be9f..552f71476f 100644
--- a/apps/client/src/widgets/collections/board/index.tsx
+++ b/apps/client/src/widgets/collections/board/index.tsx
@@ -253,7 +253,7 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, multilin
}
}}
onBlur={(newValue) => {
- if (newValue !== currentValue) {
+ if (newValue !== currentValue || isNewItem) {
save(newValue);
}
dismiss();