Skip to content

Commit

Permalink
showing first 20 items in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoBeeAkto committed Dec 30, 2024
1 parent 4fffdd1 commit 0ea0127
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function DropdownSearch(props) {
deselectedOptions.forEach((opt) => {
const options = opt.options.filter((option) =>
option[searchKey].match(filterRegex),
);
).slice(0, sliceMaxVal || 20);

resultOptions.push({
title: dynamicTitle ? `Showing ${options.length} result${func.addPlurality(options.length)} (type more to refine results)` : opt.title,
Expand Down

0 comments on commit 0ea0127

Please sign in to comment.