Skip to content

Commit

Permalink
remove multi
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Oct 29, 2020
1 parent 83df90f commit 424ac39
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ function createSuggestion<TItem extends { label: string }>(
};
}

interface AutocompleteMultiSuggestion<TItem> {
source: InternalAutocompleteSource<TItem>;
items: TItem[][];
}

function createMultiSuggestion<TItem extends { label: string }>(
items: TItem[][] = []
): AutocompleteMultiSuggestion<TItem> {
return {
source: {
getInputValue: ({ suggestion }) => suggestion.label,
getSuggestionUrl: () => undefined,
onHighlight: () => {},
onSelect: () => {},
getSuggestions: () => items,
},
items,
};
}

describe('createAutocomplete', () => {
test('setHighlightedIndex', () => {
const onStateChange = jest.fn();
Expand Down

0 comments on commit 424ac39

Please sign in to comment.