@@ -113,6 +113,7 @@ const SearchSuggestionsBox = forwardRef(({
113
113
isHighlightEnabled = false ,
114
114
isSpotlightEnabled = false ,
115
115
isClientSideSearchEnabled = true ,
116
+ isClientSideSearchCaseSensitive = true ,
116
117
descriptionPlacement = "left" ,
117
118
onSuggestionClicked,
118
119
DefaultIcon,
@@ -123,6 +124,7 @@ const SearchSuggestionsBox = forwardRef(({
123
124
isHighlightEnabled ?: boolean ,
124
125
isSpotlightEnabled ?: boolean ,
125
126
isClientSideSearchEnabled ?: boolean ,
127
+ isClientSideSearchCaseSensitive ?: boolean ,
126
128
descriptionPlacement ?: "left" | "right" ,
127
129
onSuggestionClicked : ( value : string ) => void ,
128
130
DefaultIcon ?: IconType
@@ -159,6 +161,7 @@ const SearchSuggestionsBox = forwardRef(({
159
161
list : languageSuggestions ,
160
162
onSuggestionClicked : createOnSuggestionClickedHandler ( ) ,
161
163
isSpotlightEnabled : true ,
164
+ isClientSideSearchCaseSensitive : false ,
162
165
}
163
166
}
164
167
case "refine" :
@@ -205,7 +208,7 @@ const SearchSuggestionsBox = forwardRef(({
205
208
const fuse = new Fuse ( list , {
206
209
threshold,
207
210
keys : [ 'value' ] ,
208
- isCaseSensitive : true ,
211
+ isCaseSensitive : isClientSideSearchCaseSensitive ,
209
212
} ) ;
210
213
211
214
const suggestions = ( ( ) => {
0 commit comments