diff --git a/components/table/Table.razor.RowData.cs b/components/table/Table.razor.RowData.cs index 7684d41d..360231e3 100644 --- a/components/table/Table.razor.RowData.cs +++ b/components/table/Table.razor.RowData.cs @@ -18,6 +18,8 @@ namespace AntDesign private void FinishLoadPage() { + FlushCache(); + if (_selection == null) return; diff --git a/components/table/Table.razor.cs b/components/table/Table.razor.cs index dfc2e7a9..a6d00b6d 100644 --- a/components/table/Table.razor.cs +++ b/components/table/Table.razor.cs @@ -311,7 +311,7 @@ namespace AntDesign { ResetData(); - PageIndex = 1; + ChangePageIndex(1); this.ReloadAndInvokeChange(); } @@ -718,11 +718,7 @@ namespace AntDesign { // Do not render until initialisation is complete. this._shouldRender = this._shouldRender && _hasInitialized; - if (_shouldRender) - { - FlushCache(); // clear the selection state after pages was changed outside - } return this._shouldRender; }