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: allow multiple popups at one time on mobile
Abdullah Atta5c8cf1beb5bd
diff --git a/packages/editor/src/components/popup-presenter/index.tsx b/packages/editor/src/components/popup-presenter/index.tsxindex 37fd8ec6d..69250916b 100644--- a/packages/editor/src/components/popup-presenter/index.tsx+++ b/packages/editor/src/components/popup-presenter/index.tsx@@ -281,15 +281,11 @@ type UsePopupHandlerOptions = {onClosed?: () => void;};export function usePopupHandler(options: UsePopupHandlerOptions) {- const { isOpen, id, onClosed } = options;- const isBottom = useToolbarStore(- (store) => store.toolbarLocation === "bottom"- );+ const { isOpen, id, onClosed, group } = options;const isPopupOpen = useToolbarStore((store) => !!store.openedPopups[id]);const openPopup = useToolbarStore((store) => store.openPopup);const closePopup = useToolbarStore((store) => store.closePopup);const closePopupGroup = useToolbarStore((store) => store.closePopupGroup);- const group = isBottom ? "popup" : options.group;useEffect(() => {if (isOpen) openPopup({ id, group });