Skip to content

Commit

Permalink
Merge pull request #6309 from jockis/SelectAutocompleteItemWithKeyboard
Browse files Browse the repository at this point in the history
Set key to undefined so index get correct value when creating list items
  • Loading branch information
nitrogenous authored Apr 9, 2024
2 parents 762f720 + 7fa273c commit 64bbfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/autocomplete/AutoCompletePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const AutoCompletePanel = React.memo(
getPTOptions(suggestion, 'item')
);

return createListItem(suggestion, index, itemProps);
return createListItem(suggestion, undefined, index, itemProps);
};

const createItems = () => {
Expand Down

0 comments on commit 64bbfe3

Please sign in to comment.