Fix `@bind:after` description (#34128)
parent
efb59ba306
commit
c830a92c5c
|
@ -158,7 +158,7 @@ Razor attribute binding is case-sensitive:
|
|||
|
||||
:::moniker range=">= aspnetcore-7.0"
|
||||
|
||||
To execute asynchronous logic after binding, use `@bind:after="{EVENT}"` with a DOM event for the `{EVENT}` placeholder. An assigned C# method isn't executed until the bound value is assigned synchronously.
|
||||
To execute asynchronous logic after binding, use `@bind:after="{DELEGATE}"`, where the `{DELEGATE}` placeholder is a C# delegate (method). An assigned C# delegate isn't executed until the bound value is assigned synchronously.
|
||||
|
||||
Using an [event callback parameter (`EventCallback`/`EventCallback<T>`)](xref:blazor/components/event-handling#eventcallback) with `@bind:after` isn't supported. Instead, pass a method that returns an <xref:System.Action> or <xref:System.Threading.Tasks.Task> to `@bind:after`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue