mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-30 02:58:37 +08:00
!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:
parent
2ab63ad00b
commit
5cd8ba3d4d
@ -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'">
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user