Browse Source

fix #4120: Fix scrollTo bug

zhixin 7 years ago
parent
commit
7f00365024
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2991,7 +2991,7 @@
         return this.$tableBody.scrollTop()
       }
 
-      let value = 0
+      let value = _value
       if (typeof _value === 'string' && _value === 'bottom') {
         value = this.$tableBody[0].scrollHeight
       }