Format composer menu highlight hook

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-06-18 16:35:13 +00:00
1 parent 6079627913
commit e581e80cf1
1 file changed
+7 -1
@@ -63,7 +63,13 @@ export function useComposerMenuHighlight(input: {
currentSearchKey: input.searchKey,
highlightedSearchKey: highlightState.searchKey,
});
}, [highlightState.itemId, highlightState.searchKey, input.items, input.menuOpen, input.searchKey]);
}, [
highlightState.itemId,
highlightState.searchKey,
input.items,
input.menuOpen,
input.searchKey,
]);
const activeItemIdRef = useRef(activeItemId);
activeItemIdRef.current = activeItemId;