-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Options value for current page and size per page are not respected #304
Comments
@xabikos, I thinks a example is good. |
@AllenFang Here you can find an example gist I created which demonstrates the problem |
Thank you! I'll check this out |
Please keep in mind my first comment and which changes are probably related to the problem. Thanks in advance for the help. I will also try to explore the code. |
@xabikos, a question, the problem which you encounter is that the page button and sizePerPage dropdown is not changed correctly? ex: click page 2, but I see page one still clicked but data has changed correctly |
Exactly this one. And if you try to change the size per page e.g. to 25 then you will see 25 rows but the corresponding dropdown still shows 10 |
ok, Thanks your example! |
@xabikos, fixed on v1.6.2. You can check it out :) |
Yes it is fixed. Thanks once again! |
We are using the component with server side pagination. This means that we only retrieve the data for the current page from the page and in every page change or when the size of the page changes a new request is happening. This requires to maintain the current page and the current size per page internally and pass it to react-bootstrap-table through the options object. This worked quite good but currently is broken. I suspect this happened in this commit as I noticed this behavior in version 1.5.3. If the description is not clear enough I can provide also a small example demonstrate that.
The text was updated successfully, but these errors were encountered: