Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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
<FormListItem
key={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>