Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Error with onblur, There is no argument given that corresponds to the required parameter 'e'

$
0
0

I get the error,

There is no argument given that corresponds to the required parameter'e' of 'AddContributor.OnPayerIdChangedAsync(ChangeEventArgs)'

This is the pertinent area of blazor markup:

<label class="ms-3 me-2 fw-bold">Payer ID:</label><InputText @bind-Value="contributor.PayerId"           class="form-control"            placeholder="Enter TkID"           @onblur="() => OnPayerIdChangedAsync()" />

It's calling this method:

private async Task OnPayerIdChangedAsync(ChangeEventArgs e){    contributor.PayerId = e.Value?.ToString()?.Trim() ?? string.Empty;    ....

I've googled it and not finding anything that's the same, where it's an event. All the things I find this wording, which is different: There is no argument given that the corresponds to the required formal parameter

This is what it looks like, where this is for the Payer ID field:enter image description here

Any ideas? It's calling this method when they click out of the input field, so I can do a query and auto-fill the other fields. Thanks in advance! :)


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>