dotnet/aspnetcore

EditForm: change API to allow form subission from code

开放

#48,613 创建于 2023年6月5日

 (8 条评论) (0 个反应) (0 位负责人)C# (10,653 个派生)batch import
area-blazorcopilot-candidatehelp wanted

仓库指标

星标
 (37,933 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Currentyle, it seems there's no way to submit an EditForm programatically from C# code because the HandleSubmitAsync method is private.

Describe the solution you'd like

Adding a public method that submits the form would allows us to have forms without submit buttons (ex.: scenario where the user must pick items from lists and where picking an item should submit a form) and would allow us to reuse the context+validation logic currently implemented by the EditForm.

Additional context

No response

贡献者指南