From 8944bb3bb447963f2cdeae326ba16561e95e3673 Mon Sep 17 00:00:00 2001 From: zhixin Date: Sat, 9 Dec 2017 20:53:19 +0800 Subject: [PATCH] Fix #3318: group-by reinitialize bug --- src/extensions/group-by/bootstrap-table-group-by.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/group-by/bootstrap-table-group-by.js b/src/extensions/group-by/bootstrap-table-group-by.js index 376a4ed315..35c3b61a79 100644 --- a/src/extensions/group-by/bootstrap-table-group-by.js +++ b/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 () {