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
editor: fix link popup not opening on link focus
Abdullah Atta043228fe4705
diff --git a/packages/editor/src/toolbar/stores/toolbar-store.ts b/packages/editor/src/toolbar/stores/toolbar-store.tsindex 0ca3e28a0..b75aeab0d 100644--- a/packages/editor/src/toolbar/stores/toolbar-store.ts+++ b/packages/editor/src/toolbar/stores/toolbar-store.ts@@ -74,7 +74,7 @@ export const useToolbarStore = create<ToolbarState>((set, get) => ({set((state) => {state.openedPopups = {...state.openedPopups,- [id]: false+ [id]: undefined};}),isPopupOpen: (id) => !!get().openedPopups[id],@@ -90,14 +90,14 @@ export const useToolbarStore = create<ToolbarState>((set, get) => ({for (const key in state.openedPopups) {const ref = state.openedPopups[key];if (ref && ref.group === group && !excluded.includes(ref.id)) {- state.openedPopups[key] = false;+ state.openedPopups[key] = undefined;}}}),closeAllPopups: () =>set((state) => {for (const key in state.openedPopups) {- state.openedPopups[key] = false;+ state.openedPopups[key] = undefined;}})}));