Skip to content

Commit 1ec3da4

Browse files
committed
chore: fix bugs
1 parent 089b066 commit 1ec3da4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Dropdown/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,12 @@ const DropdownComponent: <T>(
307307
const defaultFilterFunction = (e: any) => {
308308
const item = _.get(e, searchField || labelField)
309309
?.toLowerCase()
310-
.replace(' ', '')
310+
.replace(/\s/g, '')
311311
.normalize('NFD')
312312
.replace(/[\u0300-\u036f]/g, '');
313313
const key = text
314314
.toLowerCase()
315-
.replace(' ', '')
315+
.replace(/\s/g, '')
316316
.normalize('NFD')
317317
.replace(/[\u0300-\u036f]/g, '');
318318

src/components/MultiSelect/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,12 @@ const MultiSelectComponent: <T>(
278278
const defaultFilterFunction = (e: any) => {
279279
const item = _.get(e, searchField || labelField)
280280
?.toLowerCase()
281-
.replace(' ', '')
281+
.replace(/\s/g, '')
282282
.normalize('NFD')
283283
.replace(/[\u0300-\u036f]/g, '');
284284
const key = text
285285
.toLowerCase()
286-
.replace(' ', '')
286+
.replace(/\s/g, '')
287287
.normalize('NFD')
288288
.replace(/[\u0300-\u036f]/g, '');
289289

0 commit comments

Comments
 (0)