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: #50
thecodrr8b6026816fa6
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex 7b81ab3b0..c682d4dc2 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -9,10 +9,10 @@ import useContextMenu from "../../utils/useContextMenu";const ActionsMenu = props => (<Menuid={props.id}- dropdownRef={props.dropdownRefs[props.index]}menuItems={props.menuItems}data={props.menuData}style={props.style}+ closeMenu={props.closeMenu}/>);@@ -130,7 +130,10 @@ const ListItem = props => {</Text></DropdownTrigger><DropdownContent style={{ zIndex: 2, marginLeft: -130 }}>- <ActionsMenu {...props} />+ <ActionsMenu+ {...props}+ closeMenu={() => props.dropdownRefs[props.index].hide()}+ /></DropdownContent></Dropdown>)}@@ -144,6 +147,7 @@ const ListItem = props => {display: "none",zIndex: 999}}+ closeMenu={() => closeContextMenu()}/>)}</Flex>diff --git a/apps/web/src/components/menu/index.js b/apps/web/src/components/menu/index.jsindex fbb16a547..21b0df188 100644--- a/apps/web/src/components/menu/index.js+++ b/apps/web/src/components/menu/index.js@@ -34,8 +34,8 @@ function Menu(props) {onClick={e => {e.stopPropagation();Dropdown.closeLastOpened();- if (props.dropdownRef) {- props.dropdownRef.hide();+ if (props.closeMenu) {+ props.closeMenu();}if (item.onClick) {item.onClick(props.data);