8000 fix(js): fix #1983, cookie with pageNumber and searchText bug · pythonAI/bootstrap-table@75d008c · GitHub
[go: up one dir, main page]

Skip to content

Commit 75d008c

Browse files
committed
fix(js): fix wenzhixin#1983, cookie with pageNumber and searchText bug
1 parent cedf458 commit 75d008c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap-table.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,9 @@
12371237
this.searchText = text
12381238
this.options.searchText = text
12391239

1240-
this.options.pageNumber = 1
1240+
if (!firedByInitSearchText) {
1241+
this.options.pageNumber = 1
1242+
}
12411243
this.initSearch()
12421244
if (firedByInitSearchText) {
12431245
if (this.options.sidePagination === 'client') {

0 commit comments

Comments
 (0)
0