-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MudTable : Fix bug where CurrentPage is reset at the initialization #11745
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
Merged
danielchalmers
merged 3 commits into
MudBlazor:dev
from
vernou:11727-bug-datagrid-currentpage
Aug 2, 2025
Merged
MudTable : Fix bug where CurrentPage is reset at the initialization #11745
danielchalmers
merged 3 commits into
MudBlazor:dev
from
vernou:11727-bug-datagrid-currentpage
Aug 2, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #11745 +/- ##
==========================================
- Coverage 91.35% 91.30% -0.05%
==========================================
Files 466 466
Lines 14697 14711 +14
Branches 2853 2870 +17
==========================================
+ Hits 13426 13432 +6
- Misses 632 636 +4
- Partials 639 643 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Aug 5, 2025
Closed
Closed
This was referenced Aug 14, 2025
This was referenced Aug 19, 2025
This was referenced Aug 27, 2025
This was referenced Sep 4, 2025
This was referenced Sep 22, 2025
This was referenced Oct 1, 2025
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Fixes #11727
When
MudTableis initialized withCurrentPageparameter, this parameter is reset at 0.MudTableis correctly initialized with the expectedCurrentPage, but next the innerMudTablePageris initialized and setMudTable.RowsPerPagewhat resetMudTable.CurrentPage.The solution would be to rework the parameters
RowsPerPageandCurrentPageto manage the new value inOnParameterSet, but the risk of breaking change is high. So maybe for a next major version.The other solution (I implemented in this PR) is to not reset
MudTable.CurrentPagewhenRowsPerPageis set for the first time.Checklist:
dev).