diff --git a/src/bootstrap-table.js b/src/bootstrap-table.js
index <HASH>..<HASH> 100644
--- a/src/bootstrap-table.js
+++ b/src/bootstrap-table.js
@@ -2886,10 +2886,6 @@ class BootstrapTable {
   }
 
   scrollTo (params) {
-    if (typeof params === 'undefined') {
-      return this.$tableBody.scrollTop()
-    }
-
     let options = {unit: 'px', value: 0}
     if (typeof params === 'object') {
       options = Object.assign(options, params)
@@ -2911,7 +2907,7 @@ class BootstrapTable {
   }
 
   getScrollPosition () {
-    return this.scrollTo()
+    return this.$tableBody.scrollTop()
   }
 
   selectPage (page) {
Fixed getScrollPosition bug when using group by extension