1

I am following the latest tutorial on data binding using @bind:get @bind:set modifiers however a straight copy-paste of their correct approach example code results in an error on this line:

<input @bind:event="oninput" @bind:get="inputValue" @bind:set="OnInput" />

Which is:

CS1503 Argument 3: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<string>' to 'System.Action<string?>'

Is this is mistake in the Microsoft docs?

Moffen
  • 1,817
  • 1
  • 14
  • 34

1 Answers1

1

Install the latest .NET SDK

I was missing a minor version update of the .NET 7 SDK

Moffen
  • 1,817
  • 1
  • 14
  • 34