Format composer menu highlight hook
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user