-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix rows reorder when pagination is applied. #6973
Conversation
When the pagination is activated and the rows are reordered on pages other than the first one, the order was not taking into account the page number and the page size. This commit changes the index at which the row needs to be inserted by accounting for the page size and page number.
Please provide an Online Example to show your problem. Thanks! |
@wenzhixin Please see https://examples.bootstrap-table.com/#extensions/reorder-rows.html |
Co-authored-by: 文翼 <[email protected]>
Co-authored-by: 文翼 <[email protected]>
This is an example using you're commit: https://live.bootstrap-table.com/code/UtechtDustin/16248
|
@UtechtDustin I have fixed the redeclaration issue in the previous commit, please try to run again. I am not able to load the updated code in the live editor though. |
Thank you for the contibution, the latest commit is in the cache of the used cdn. |
When the pagination is activated and the rows are reordered on pages other than the first one, the order was not taking into account the page number and the page size. This commit changes the index at which the row needs to be inserted by accounting for the page size and page number.
🤔Type of Request
📝Changelog