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: items not unselected after turning selection mode off
thecodrr29916e351804
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex 915273b96..050e6c1c0 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -70,6 +70,10 @@ const ListItem = props => {[setIsSelected, selectItem, props.item]);+ useEffect(() => {+ if (!isSelectionMode) setIsSelected(false);+ }, [isSelectionMode]);+useEffect(() => {if (props.selectable) {setMenuItems([diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.jsindex 13ca32e69..62da74dc6 100644--- a/apps/web/src/stores/app-store.js+++ b/apps/web/src/stores/app-store.js@@ -30,8 +30,8 @@ function appStore(set, get) {});},selectItem: function(item) {+ const index = get().selectedItems.findIndex(v => item.id === v.id);set(state => {- const index = state.selectedItems.findIndex(v => item.id === v.id);if (index >= 0) {state.selectedItems.splice(index, 1);} else {