Browse Source

Merge pull request #6417 from marceloverdijk/6401_2

Fixes resetting the page number to 1 when searching and cookies enabled
Dustin Utecht 2 years ago
parent
commit
1a1c5cda67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -965,7 +965,7 @@ class BootstrapTable {
       }
     }
 
-    if (!firedByInitSearchText && !this.options.cookie) {
+    if (!firedByInitSearchText) {
       this.options.pageNumber = 1
     }
     this.initSearch()