Browse Source

Added check if copy rows plugin is enabled or not

Dustin Utecht 5 years ago
parent
commit
0119196c93
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/extensions/copy-rows/bootstrap-table-copy-rows.js

+ 3 - 1
src/extensions/copy-rows/bootstrap-table-copy-rows.js

@@ -90,6 +90,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
   }
 
   updateCopyButton () {
-    this.$copyButton.prop('disabled', !this.getSelections().length)
+    if (this.options.showCopyRows) {
+      this.$copyButton.prop('disabled', !this.getSelections().length)
+    }
   }
 }