This repository was archived by the owner on Dec 26, 2025. It is now read-only.
Possibility to validate on keyup #118
devtendenz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I see that the validation is triggered by the OnValidationRequested and OnFieldChanged of the editContext.
Is it possible to add (optionally) a validation trigger from a user-specified trigger, so we can for instance do:
<MudTextField T="string" @bind-Value="test" OnKeyUp="OnKeyUp" />private void OnKeyUp(KeyboardEventArgs args) { _fluentValidationValidator.triggervalidation }If I do just '_fluentValidationValidator.Validate' from the OnKeyUp, it returns the value before the enter/blur event, not the current status. So if I have a textfield which should not be empty, and it's empty, and the red error message shows, I want to have that gone once I type a character, and be back again once I clear the field with backspace/delete.
Beta Was this translation helpful? Give feedback.
All reactions