diff --git a/components/table/Table.razor.cs b/components/table/Table.razor.cs index bfb37dc1..00f53992 100644 --- a/components/table/Table.razor.cs +++ b/components/table/Table.razor.cs @@ -402,9 +402,9 @@ namespace AntDesign _shouldRender = true; } - if (HidePagination) + if (HidePagination && _dataSourceCount > 0) { - _pageSize = _total; + _pageSize = _dataSourceCount; } if (!_preventRender)