Browse Source

Fix #3318: group-by reinitialize bug

zhixin 8 years ago
parent
commit
8944bb3bb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/group-by/bootstrap-table-group-by.js

+ 1 - 1
src/extensions/group-by/bootstrap-table-group-by.js

@@ -176,7 +176,7 @@
 
                 originalRowAttr = this.options.rowAttributes;
                 this.options.rowAttributes = rowAttr;
-                this.$el.on('post-body.bs.table', function () {
+                this.$el.off('post-body.bs.table').on('post-body.bs.table', function () {
                     that.$el.treetable({
                         expandable: true,
                         onNodeExpand: function () {