Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module: table): UnselectAll() was not work #3618

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions components/table/Table.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,6 @@

private QueryModel<TItem> InternalReload()
{
FlushCache(); // clear the selection state after pages was changed outside

if (HidePagination && _dataSourceCount > 0)
{
_pageSize = _dataSourceCount;
Expand Down Expand Up @@ -720,7 +718,11 @@
{
// Do not render until initialisation is complete.
this._shouldRender = this._shouldRender && _hasInitialized;
if (_shouldRender)
{
FlushCache(); // clear the selection state after pages was changed outside

Check warning on line 723 in components/table/Table.razor.cs

View check run for this annotation

Codecov / codecov/patch

components/table/Table.razor.cs#L723

Added line #L723 was not covered by tests

}
return this._shouldRender;
}

Expand Down