From f96115e54bbdbc389b4e94e3785f4270c677dfb3 Mon Sep 17 00:00:00 2001 From: zhixin Date: Tue, 24 Dec 2024 08:48:57 +0800 Subject: [PATCH] Fixed filterBy not working bug after using filterAlgorithm option --- src/bootstrap-table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap-table.js b/src/bootstrap-table.js index 9c8f40d98..98b1b692a 100644 --- a/src/bootstrap-table.js +++ b/src/bootstrap-table.js @@ -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()