Skip to content

Commit b5a020a

Browse files
authored
Merge pull request #8078 from wenzhixin/7287
Fix issue #7287
2 parents 8cb836a + 83f815b commit b5a020a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/extensions/filter-control/bootstrap-table-filter-control.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,13 @@ $.BootstrapTable = class extends $.BootstrapTable {
486486
}
487487
UtilsFilterControl.cacheValues(this)
488488

489+
const isInitialRender = !this._initialized
490+
489491
// Cookie extension support
490492
if (!this.options.cookie) {
491-
this.options.pageNumber = 1
493+
if (!isInitialRender) {
494+
this.options.pageNumber = 1
495+
}
492496
} else {
493497
// Force call the initServer method in Cookie extension
494498
this._filterControlValuesLoaded = true
@@ -516,7 +520,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
516520
}
517521
})
518522

519-
this.onSearch({ currentTarget }, false)
523+
this.onSearch({ currentTarget, firedByInitSearchText: isInitialRender }, false)
520524
}
521525

522526
toggleFilterControl () {

0 commit comments

Comments
 (0)