Unified · Split
| @@ -63,7 +63,13 @@ export function useComposerMenuHighlight(input: { · 62 unmodified lines | ||
| 63 | 63 | currentSearchKey: input.searchKey, |
| 64 | 64 | highlightedSearchKey: highlightState.searchKey, |
| 65 | 65 | }); |
| 66 | − }, [highlightState.itemId, highlightState.searchKey, input.items, input.menuOpen, input.searchKey]); | |
| 66 | + }, [ | |
| 67 | + highlightState.itemId, | |
| 68 | + highlightState.searchKey, | |
| 69 | + input.items, | |
| 70 | + input.menuOpen, | |
| 71 | + input.searchKey, | |
| 72 | + ]); | |
| 67 | 73 | const activeItemIdRef = useRef(activeItemId); |
| 68 | 74 | activeItemIdRef.current = activeItemId; |
| 69 | 75 | |