A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: same context menu appearing across views for same index items
thecodrrace4e0603119
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex 786a9db4c..769494139 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -42,7 +42,7 @@ const ItemSelector = ({ isSelected, toggleSelection }) => {};function ListItem(props) {- const menuId = `contextMenu${props.index}`;+ const menuId = `contextMenu-${props.item.id}`;const [parentRef, closeMenu, openMenu] = useContextMenu(menuId);const isSelectionMode = useSelectionStore((store) => store.isSelectionMode);const selectedItems = useSelectionStore((store) => store.selectedItems);@@ -185,7 +185,7 @@ function ListItem(props) {size={22}strokeWidth={2}color="icon"- style={{ marginRight: -5 }}+ sx={{ marginRight: -1 }}onClick={(e) => {openMenu(e.nativeEvent, menuId, true);}}diff --git a/apps/web/src/components/menu/colors.js b/apps/web/src/components/menu/colors.jsindex 203d92dcf..2b73aa913 100644--- a/apps/web/src/components/menu/colors.js+++ b/apps/web/src/components/menu/colors.js@@ -27,7 +27,6 @@ function Colors(props) {<Icon.Checkmarksx={{position: "absolute",- top: "4px",left: "5px",cursor: "pointer",}}