Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(calendar): keep the properties menu open when picking time-slot values
Elian Doran06ef7b3cbdde
diff --git a/apps/client/src/widgets/react/NotePropertyMenu.tsx b/apps/client/src/widgets/react/NotePropertyMenu.tsxindex 65dd5bdcce..fdcfb96cf8 100644--- a/apps/client/src/widgets/react/NotePropertyMenu.tsx+++ b/apps/client/src/widgets/react/NotePropertyMenu.tsx@@ -151,7 +151,11 @@ function OptionGroupPropertyView({ note, property }: { note: FNote, property: Op<FormListItemkey={option.value}checked={valueWithDefault === option.value}- onClick={() => setValue(option.value)}+ // Keep the menu open so several grouped settings can be adjusted in one go.+ onClick={(e) => {+ e.stopPropagation();+ setValue(option.value);+ }}>{option.label}</FormListItem>