Browse Source

fix weired bug with export plugin (#5294)

Co-authored-by: Dennis Hernández <dennishernandezvargas@gmail.com>
Dustin Utecht 5 years ago
parent
commit
e24d5c2b4e
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/extensions/export/bootstrap-table-export.js

+ 6 - 4
src/extensions/export/bootstrap-table-export.js

@@ -260,10 +260,12 @@ $.BootstrapTable = class extends $.BootstrapTable {
       const virtualScroll = this.options.virtualScroll
 
       this.$el.one(eventName, () => {
-        doExport(() => {
-          this.options.virtualScroll = virtualScroll
-          this.togglePagination()
-        })
+        setTimeout(() => {
+          doExport(() => {
+            this.options.virtualScroll = virtualScroll
+            this.togglePagination()
+          })
+        }, 0)
       })
       this.options.virtualScroll = false
       this.togglePagination()