fix(module: table): should flush cache only pagging (#3620)

This commit is contained in:
James Yeung 2024-01-09 19:48:43 +08:00 committed by GitHub
parent 8585feb5d0
commit 5d02b0b53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -18,6 +18,8 @@ namespace AntDesign
private void FinishLoadPage()
{
FlushCache();
if (_selection == null)
return;

View File

@ -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;
}