Skip to content

Commit

Permalink
Merge pull request #3451 from ingef/fix-multi-select-filtering-with-s…
Browse files Browse the repository at this point in the history
…ingle-character

Allow single-character multi-select filtering
  • Loading branch information
Kadrian authored May 27, 2024
2 parents 1658350 + dd3249d commit af5d0fc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ const InputMultiSelect = ({
useDebounce(
() => {
if (onLoadMore && !loading) {
const prefix = inputValue.length < 2 ? "" : inputValue;
onLoadMore(prefix, { shouldReset: true });
onLoadMore(inputValue, { shouldReset: true });
}
},
350,
Expand Down Expand Up @@ -395,9 +394,7 @@ const InputMultiSelect = ({
<LoadMoreSentinel
onLoadMore={() => {
if (!loading) {
const prefix =
inputValue.length < 2 ? "" : inputValue;
onLoadMore(prefix);
onLoadMore(inputValue);
}
}}
/>
Expand Down

0 comments on commit af5d0fc

Please sign in to comment.