Skip to content

Commit

Permalink
Merge pull request #7665 from wenzhixin/fix/filter-by
Browse files Browse the repository at this point in the history
Fixed filterBy not working bug after using filterAlgorithm option
  • Loading branch information
wenzhixin authored Dec 24, 2024
2 parents ab1640b + f96115e commit 4913290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -3248,7 +3248,8 @@ class BootstrapTable {
}

filterBy (columns, options) {
this.filterOptions = Utils.isEmptyObject(options) ? this.options.filterOptions : Utils.extend(this.options.filterOptions, options)
this.filterOptions = Utils.isEmptyObject(options) ? this.options.filterOptions :
Utils.extend({}, this.options.filterOptions, options)
this.filterColumns = Utils.isEmptyObject(columns) ? {} : columns
this.options.pageNumber = 1
this.initSearch()
Expand Down

0 comments on commit 4913290

Please sign in to comment.