Essentially, what I'm trying to do, is have the 'Update' button within an EditForm appear disabled, until the user has made a change to the text contained within a textbox.
<EditForm EditContext="@EditContext">
<InputText @bind-Value="SomeModel.Text></InputText>
...
<EditForm/>
I've set up the event handler as follows
private EditContext EditContext { get; set; }
protected override void OnInitialized()
{
this.EditContext = new EditContext(this.SomeModel);
EditContext.OnFieldChanged += FieldChanged;
}
This works, but not in the way I want it to. With this I have to wait until the user changes focus before the event fires, but I want it to fire as soon as the text changes (The equivalent of WinForms TextBox.OnTextChanged)