Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: can't open quick search without cursor (#1457)

JimmFlyca603336b221
diff --git a/apps/web/src/components/pure/quick-search-modal/index.tsx b/apps/web/src/components/pure/quick-search-modal/index.tsx
index cd42b1e0e5..381b736f70 100644
--- a/apps/web/src/components/pure/quick-search-modal/index.tsx
+++ b/apps/web/src/components/pure/quick-search-modal/index.tsx
@@ -73,9 +73,7 @@ export const QuickSearchModal: React.FC<QuickSearchModalProps> = ({
setOpen(false);
return;
}
- if (selection?.isCollapsed) {
- setOpen(!open);
- }
+ setOpen(!open);
}
};
document.addEventListener('keydown', keydown, { capture: true });