!2718 fix(#I552KB): do not clone origin model when set OnEditAsync callback

* chore: bump version 6.5.13
* fix: 修复 提供 OnEditAsync 回调时编辑对象未复制导致原始值被更改问题
This commit is contained in:
Argo 2022-04-28 03:20:35 +00:00
parent 2ab63ad00b
commit 5cd8ba3d4d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>6.5.12</Version>
<Version>6.5.13</Version>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

View File

@ -273,7 +273,7 @@ public partial class Table<TItem>
{
if (OnEditAsync != null)
{
EditModel = SelectedRows[0];
EditModel = IsTracking ? SelectedRows[0] : Utility.Clone(SelectedRows[0]);
await OnEditAsync(EditModel);
}
else