Skip to content

Build your personal knowledge base with Trilium Notes

client/note color picker: dismiss the menu when a color is clicked

Adorian Dorand42f911df9c7
diff --git a/apps/client/src/menus/custom-items/NoteColorPicker.tsx b/apps/client/src/menus/custom-items/NoteColorPicker.tsx
index 05041d898c..06ae6dc96b 100644
--- a/apps/client/src/menus/custom-items/NoteColorPicker.tsx
+++ b/apps/client/src/menus/custom-items/NoteColorPicker.tsx
@@ -67,8 +67,7 @@ export default function NoteColorPicker(props: NoteColorPickerProps) {
}
}, [note, currentColor]);
- return <div className="note-color-picker"
- onClick={(e) => {e.stopPropagation()}}>
+ return <div className="note-color-picker">
<ColorCell className="color-cell-reset"
tooltip={t("note-color.clear-color")}