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: #128
thecodrr8d72daa82c4e
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex b3e7ef2f4..5c5b6dbed 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -71,12 +71,12 @@ const ListItem = props => {);useEffect(() => {- if (!isSelectionMode) setIsSelected(false);- }, [isSelectionMode]);+ if (!isSelectionMode && isSelected) toggleSelection();+ }, [isSelectionMode, toggleSelection, isSelected]);useEffect(() => {- if (shouldSelectAll) setIsSelected(true);- }, [shouldSelectAll]);+ if (shouldSelectAll && !isSelected) toggleSelection();+ }, [shouldSelectAll, toggleSelection, isSelected]);useEffect(() => {if (props.selectable) {