Skip to content

Commit

Permalink
chore: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hoaphantn7604 committed Mar 11, 2024
1 parent 089b066 commit 1ec3da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Dropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,12 @@ const DropdownComponent: <T>(
const defaultFilterFunction = (e: any) => {
const item = _.get(e, searchField || labelField)
?.toLowerCase()
.replace(' ', '')
.replace(/\s/g, '')
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
const key = text
.toLowerCase()
.replace(' ', '')
.replace(/\s/g, '')
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');

Expand Down
4 changes: 2 additions & 2 deletions src/components/MultiSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ const MultiSelectComponent: <T>(
const defaultFilterFunction = (e: any) => {
const item = _.get(e, searchField || labelField)
?.toLowerCase()
.replace(' ', '')
.replace(/\s/g, '')
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
const key = text
.toLowerCase()
.replace(' ', '')
.replace(/\s/g, '')
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');

Expand Down

0 comments on commit 1ec3da4

Please sign in to comment.