mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fix(module: table): Infinite loop when HidePagination
and PageSize
were set at the same time and datasource is empty. (#2919)
This commit is contained in:
parent
9a4743c747
commit
e9382b8f05
@ -402,9 +402,9 @@ namespace AntDesign
|
||||
_shouldRender = true;
|
||||
}
|
||||
|
||||
if (HidePagination)
|
||||
if (HidePagination && _dataSourceCount > 0)
|
||||
{
|
||||
_pageSize = _total;
|
||||
_pageSize = _dataSourceCount;
|
||||
}
|
||||
|
||||
if (!_preventRender)
|
||||
|
Loading…
Reference in New Issue
Block a user