We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.3
None
Something like:
<Validations @ref=_validationsRef HandlerType="ValidationHandlerType.DataAnnotation" Model="_model"> <Validation> <Field> <FieldLabel>Phone Country Code</FieldLabel> <TextEdit @bind-Text="@_model.PhoneCountryCode"> <Feedback> <ValidationError>TEST</ValidationError> </Feedback> </TextEdit> </Field> </Validation> </Validations> <Button Clicked="Submit">Submit</Button> @code { private ValidationLocalizationExample _model = new(); private Validations _validationsRef; public class ValidationLocalizationExample { [RegularExpression( @"^(\+?\d{1,3}|\d{1,4})$" )] public string PhoneCountryCode { get; set; } } private async Task Submit() { if (await _validationsRef.ValidateAll()) { Console.WriteLine( "Validation Success!" ); } } }
Validate
We should consider to have an higher priority in the ValidationError ChildContent
The default error message shows, instead of what's configured explicitly in the ValidationError This is a related issue in Blazorise Support : https://blazorise.com/support/issues/122/validation-error-content-being-ignored-and-replaced-with-error-message-from-dataannotation
No response
The text was updated successfully, but these errors were encountered:
stsrki
No branches or pull requests
Blazorise Version
1.3
What Blazorise provider are you running on?
None
Link to minimal reproduction, or a simple code snippet
Something like:
Steps to reproduce
Validate
What is expected?
We should consider to have an higher priority in the ValidationError ChildContent
What is actually happening?
The default error message shows, instead of what's configured explicitly in the ValidationError
This is a related issue in Blazorise Support :
https://blazorise.com/support/issues/122/validation-error-content-being-ignored-and-replaced-with-error-message-from-dataannotation
What browsers are you seeing the problem on?
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: