Browse Source

reset page number to 1 while making a server side sort (#4414)

Dustin Utecht 6 years ago
parent
commit
03ef50d1cf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bootstrap-table.js

+ 1 - 0
src/bootstrap-table.js

@@ -451,6 +451,7 @@ class BootstrapTable {
     this.getCaret()
 
     if (this.options.sidePagination === 'server') {
+      this.options.pageNumber = 1
       this.initServer(this.options.silentSort)
       return
     }