Skip to content

Commit 609e682

Browse files
committed
fix(combobox): correct filtering when only one character is typed
Issue: filtering did not work correctly when only one character was entered. Root cause: startsWith search option was using WORD_STARTS_WITH. Solution: replaced WORD_STARTS_WITH with STARTS_WITH.
1 parent 5020947 commit 609e682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/pluggableWidgets/combobox-web/src/helpers

packages/pluggableWidgets/combobox-web/src/helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function getFilterTypeOptions(filter: FilterTypeEnum): MatchSorterOptions
9494
};
9595
case "startsWith":
9696
return {
97-
threshold: matchSorter.rankings.WORD_STARTS_WITH
97+
threshold: matchSorter.rankings.STARTS_WITH
9898
};
9999
case "none":
100100
return {

0 commit comments

Comments
 (0)