ソースを参照

trigger search if the sortPriority is used (#4418)

Dustin Utecht 6 年 前
コミット
a832640d05

+ 4 - 0
src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

@@ -497,6 +497,10 @@ BootstrapTable.prototype.initToolbar = function (...args) {
   this.$sortModal = $(sortModalId)
   this.sortModalSelector = sortModalSelector
 
+  if (that.options.sortPriority !== null) {
+    that.onMultipleSort()
+  }
+
   _initToolbar.apply(this, Array.prototype.slice.apply(args))
 
   if (that.options.sidePagination === 'server' && !isSingleSort && that.options.sortPriority !== null) {