Browse Source

Merge pull request #4674 from wenzhixin/fix/4672

Fixed virtualScroll option bug when import tree-grid
Dustin Utecht 6 years ago
parent
commit
ffdac0f72a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/extensions/treegrid/bootstrap-table-treegrid.js

+ 3 - 1
src/extensions/treegrid/bootstrap-table-treegrid.js

@@ -32,7 +32,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
   }
 
   initBody (...args) {
-    this.options.virtualScroll = !this.treeEnable
+    if (this.treeEnable) {
+      this.options.virtualScroll = false
+    }
     super.initBody(...args)
   }