When using filter-control with cookie, after refresh reset the current page to first
Bootstraptable version(s) affected
all
Description
When I use filter-control and cookies extensions, if I refresh the page (F5, auto-refresh extension, refresh button, or refresh command in script), it doesn't matter which page I'm currently on (for example, page 5), I'm taken straight to the first page (1). This is extremely inconvenient, because after changing the data by modal window with an iframe, I need to update the data in the table, but I need stay on the current page, and not go to the first page at the top of the table list.
I'm not a JavaScript expert, but I've found some code that, when commented out, makes the bug go away. In bootstrap-table-filter-control.js, on line 6486 (in the key: "initHeader" block), I commented out the line this._initialized = true; and the problem went away. I noticed this bug(?) is present in all versions. Or is this the right line? In any case, commenting out the line doesn't redirect you to the home page. Maybe the line this._initialized = true; isn't needed here?
Sorry for my english (
Example(s)
No response
Possible Solutions
comment line this._initialized = true; in block key: "initHeader" ~ line 6486 in file bootstrap-table-filter-control.js
Additional Context
No response
Source: wenzhixin/bootstrap-table