mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-20 05:06:31 +00:00
The effect commented 'Reset selection on items change' had an empty dependency array, so it only ever ran on mount. Arrow down to row 5 of the recent-documents list, then type a query that returns two results: selectedIndex stays 5, no row is highlighted (nothing renders data-index=5), and Enter silently does nothing because items[5] is undefined. The selection also never snaps back to the top result when new results stream in. Snap the selection to the top whenever the query text changes, and clamp it into range whenever the item list shrinks (async search results replacing the recent docs, refetches while the palette is open). |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| hooks | ||
| lib | ||
| public | ||
| stores | ||
| .env.example | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| globals.css | ||
| instrumentation-client.ts | ||
| middleware.ts | ||
| next.config.ts | ||
| open-next.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
| wrangler.jsonc | ||