Skip to content

Commit

Permalink
Merge branch 'main' into feat-button
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang authored Mar 4, 2023
2 parents 4a5fe7e + 3a40fc2 commit 395d144
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BootstrapBlazor/Components/Table/Table.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,11 @@ void SetEditTemplate()
var onValueChanged = Utility.GetOnValueChangedInvoke<TItem>(col.PropertyType);
col.ComponentParameters = new List<KeyValuePair<string, object>>
{
new(nameof(ValidateBase<string>.OnValueChanged), onValueChanged.Invoke(item, col, (model, column, val) => InternalOnSaveAsync(model, ItemChangedType.Update)))
new(nameof(ValidateBase<string>.OnValueChanged), onValueChanged.Invoke(item, col, async (model, column, val) =>
{
Utility.SetPropertyValue(model, column.GetFieldName(), val);
await InternalOnSaveAsync(model, ItemChangedType.Update);
}))
};
}
}
Expand Down

0 comments on commit 395d144

Please sign in to comment.