aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorfyzanshaik <[email protected]>2024-07-29 18:59:26 +0530
committerfyzanshaik <[email protected]>2024-07-29 18:59:26 +0530
commit4a90134f342f5fdc839feb8ce57cb85ca7226edb (patch)
treeb6bf8f3f70729a6b598acd4c9d715a2529c1cd91 /apps
parentFix: Disable GitHub shortcuts in text field (diff)
downloadsupermemory-4a90134f342f5fdc839feb8ce57cb85ca7226edb.tar.xz
supermemory-4a90134f342f5fdc839feb8ce57cb85ca7226edb.zip
Fix: Remove event listener through cleanup
Diffstat (limited to 'apps')
-rw-r--r--apps/extension/content/ContentApp.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/extension/content/ContentApp.tsx b/apps/extension/content/ContentApp.tsx
index a8740f25..e674137a 100644
--- a/apps/extension/content/ContentApp.tsx
+++ b/apps/extension/content/ContentApp.tsx
@@ -146,8 +146,10 @@ export default function ContentApp({
return () => {
document.removeEventListener("mousemove", () => {});
+ document.removeEventListener('keydown', handleKeyDown, true);
+
};
- }, []);
+ }, [isPopoverOpen]);
const getSpaces = async () => {
const response = await fetch(`${BACKEND_URL}/api/spaces`, {