diff options
| author | fyzanshaik <[email protected]> | 2024-07-29 18:59:26 +0530 |
|---|---|---|
| committer | fyzanshaik <[email protected]> | 2024-07-29 18:59:26 +0530 |
| commit | 4a90134f342f5fdc839feb8ce57cb85ca7226edb (patch) | |
| tree | b6bf8f3f70729a6b598acd4c9d715a2529c1cd91 /apps | |
| parent | Fix: Disable GitHub shortcuts in text field (diff) | |
| download | supermemory-4a90134f342f5fdc839feb8ce57cb85ca7226edb.tar.xz supermemory-4a90134f342f5fdc839feb8ce57cb85ca7226edb.zip | |
Fix: Remove event listener through cleanup
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/extension/content/ContentApp.tsx | 4 |
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`, { |