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:
wss-javeney 2023-01-31 11:14:19 -05:00 committed by GitHub
parent cb76d18d90
commit 71fdff3309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)