Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix(ui): allow select/unselect by clicking on checkbox

thecodrr935198bfce98
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.js
index 41d070bd3..3e862b43d 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -35,7 +35,10 @@ const ItemSelector = ({ isSelected, toggleSelection }) => {
color: "primary",
cursor: "pointer",
}}
- onClick={() => toggleSelection()}
+ onClick={(e) => {
+ e.stopPropagation();
+ toggleSelection();
+ }}
/>
) : (
<Icon.CircleEmpty
@@ -43,8 +46,13 @@ const ItemSelector = ({ isSelected, toggleSelection }) => {
sx={{
marginLeft: 0,
marginRight: 1,
+ bg: "transparent",
cursor: "pointer",
}}
+ onClick={(e) => {
+ e.stopPropagation();
+ toggleSelection();
+ }}
/>
);
};