Skip to content

Commit

Permalink
Console log
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Aug 28, 2024
1 parent c228848 commit bbb2eaa
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,21 @@ export const Autosuggest = forwardRef(function <Value>(
const { text } = suggestion;
const groupHeading = groupHeadingIndexes.get(index);
const highlights = suggestionHighlight
? [{ start: 0, end: suggestion.text.length }]
? highlightSuggestions(
suggestion.text,
value.text,
suggestionHighlight,
)
: suggestion.highlights;

console.log(
highlightSuggestions(
suggestion.text,
value.text,
suggestionHighlight,
),
);

return (
<Fragment key={index + text}>
{groupHeading ? (
Expand Down

0 comments on commit bbb2eaa

Please sign in to comment.