EventCallback not working for generic components #12627
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
investigate
Milestone
This issue is continuation of #8385
The original problem is fixed but now the problem is that generic typeparam must always be defined when using custom component. It seems that Blazor is not recognizing it implicitly.
The minimal sample can be found here: https://github.com/stsrki/BlazorGenericEventIssue
Not working:
This will giving me error because TValue is not defined:
<SelectEdit Value="@someValue" ValueChanged="@((v) => someValue=v)">
Working:
This is working only after TValue is set. It is not recognized from the context.
<SelectEdit TValue="int" Value="@someValue"ValueChanged="@((v) => someValue=v)">
Expected behavior:
TValue
should be automatically detected from the supplied value(s).The text was updated successfully, but these errors were encountered: