Browse Source

Only show the button if the extension is enabled

Dustin Utecht 3 years ago
parent
commit
be45aaa92e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

+ 1 - 1
src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

@@ -584,7 +584,7 @@ BootstrapTable.prototype.initToolbar = function (...args) {
     that.onMultipleSort()
   }
 
-  if (this.options.showMultiSortButton) {
+  if (this.options.showMultiSort && this.options.showMultiSortButton) {
     this.buttons = Object.assign(this.buttons, {
       multipleSort: {
         html: Utils.sprintf(theme.html.multipleSortButton,