mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 13:08:23 +08:00
fix(module: table): pagesize can't update once the datasource is changed while HidePagination is enabled (#3052)
* fix(module: table): when HidePagination = true, update PageSize when DataSource changes * Revert unnecessary change
This commit is contained in:
parent
cb76d18d90
commit
71fdff3309
@ -386,6 +386,11 @@ namespace AntDesign
|
||||
|
||||
private QueryModel<TItem> InternalReload()
|
||||
{
|
||||
if (HidePagination && _dataSourceCount > 0)
|
||||
{
|
||||
_pageSize = _dataSourceCount;
|
||||
}
|
||||
|
||||
var queryModel = BuildQueryModel();
|
||||
_currentQueryModel = queryModel;
|
||||
|
||||
@ -417,11 +422,6 @@ namespace AntDesign
|
||||
_shouldRender = true;
|
||||
}
|
||||
|
||||
if (HidePagination && _dataSourceCount > 0)
|
||||
{
|
||||
_pageSize = _dataSourceCount;
|
||||
}
|
||||
|
||||
if (!_preventRender)
|
||||
{
|
||||
if (_outerSelectedRows != null)
|
||||
|
Loading…
Reference in New Issue
Block a user