Browse Source

Fixed the selector if only one export type is defined (#5970)

Dustin Utecht 4 years ago
parent
commit
fe1f4d84c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/export/bootstrap-table-export.js

+ 1 - 1
src/extensions/export/bootstrap-table-export.js

@@ -152,7 +152,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
     let $exportButtons = this.$export.find('[data-type]')
 
     if (exportTypes.length === 1) {
-      $exportButtons = this.$export.find('button')
+      $exportButtons = this.$export
     }
 
     $exportButtons.click(e => {