Skip to content

Commit

Permalink
Fixed searchAccentNeutralise option not work in filter-control
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Jul 8, 2023
1 parent f180c2c commit 68966c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
ChangeLog
---------

### 1.22.2

#### Extensions

- **Update(filter-control):** Fixed `searchAccentNeutralise` option not work.

### 1.22.1

#### Core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ $.BootstrapTable = class extends $.BootstrapTable {
value = Utils.removeHTML(value.toString().toLowerCase())
}

if (this.options.searchAccentNeutralise) {
value = Utils.normalizeAccent(value)
}

if (
column.filterStrictSearch ||
column.filterControl === 'select' && column.passed.filterStrictSearch !== false
Expand Down

0 comments on commit 68966c7

Please sign in to comment.