Browse Source

Fix toolbar bug

zhixin 7 years ago
parent
commit
0eba00fb29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/toolbar/bootstrap-table-toolbar.js

+ 1 - 1
src/extensions/toolbar/bootstrap-table-toolbar.js

@@ -181,7 +181,7 @@
 
 
       const fp = $.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial
       const fp = $.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial
 
 
-      this.data = fp ? $.grep(this.data, function (item, i) {
+      this.data = fp ? $.grep(this.data, (item, i) => {
         for (const key in fp) {
         for (const key in fp) {
           const fval = fp[key].toLowerCase()
           const fval = fp[key].toLowerCase()
           let value = item[key]
           let value = item[key]