Skip to content

Commit

Permalink
Fixed filterBy not working bug after using filterAlgorithm option
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Dec 24, 2024
1 parent ab1640b commit f96115e
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 f96115e

Please sign in to comment.