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
web: multiple notes selected when right clicking on 1 note (#1342)
Muhammad Ali846adea92ecf
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex d399afe31..666ef18b4 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -91,6 +91,11 @@ function ListItem(props) {.get().selectedItems.filter((i) => i.type === props.item.type);+ if (selectedItems.indexOf(props.item) === -1) {+ selectedItems = [];+ selectedItems.push(props.item);+ }+if (selectedItems.length > 1) {title = `${selectedItems.length} items selected`;items = items.filter((item) => item.multiSelect);@@ -98,10 +103,6 @@ function ListItem(props) {items.push(...debugMenuItems(props.item.type));}- if (selectedItems.indexOf(props.item) === -1) {- selectedItems.push(props.item);- }-if (items.length <= 0) return;openMenu(items, {