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: attachments dialog not opening (fixes streetwriters/notesnook#811)
thecodrr21d0960bb24b
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsxindex 82e1949d1..cfe8a05e5 100644--- a/apps/web/src/common/dialog-controller.tsx+++ b/apps/web/src/common/dialog-controller.tsx@@ -32,7 +32,7 @@ type RenderDialog<TId extends DialogIds, TReturnType> = (perform: (result: TReturnType) => void) => JSX.Element;-const openDialogs: Partial<Record<DialogIds, boolean>> = {};+let openDialogs: Partial<Record<DialogIds, boolean>> = {};function showDialog<TId extends DialogIds, TReturnType>(id: TId,render: RenderDialog<TId, TReturnType>@@ -63,6 +63,7 @@ function showDialog<TId extends DialogIds, TReturnType>(}export function closeOpenedDialog() {+ openDialogs = {};const dialogs = document.querySelectorAll(".ReactModalPortal,[data-react-modal-body-trap]");