You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may have found an issue with validators and validation messages.
To make the plunker simple I just checked if the value is empty, but in my real case the validation is more complex.
If I have a field with $validators and broadcasts schemaFormValidate without touching it, the field is set as invalid as expected but the validation message does not appear. To get the error message, I have to type anything in the field and then clear that.
Am I missing something?
Steps to reproduce:
setup a form with sf-schema, sf-form (one text field and one submit button), sf-model
in the text field set $validators (in the example it just checks if the value is empty) and a validationMessage
setup ng-submit in form to a function which broadcasts schemaFormValidate
access the page and click in the submit button
Expected behaviour
I expected that the form would be validated and the error message would appear because the field is empty
Actual behaviour
The form was validated as expected, the field was set as invalid (error feedback appears), but the error message does not appear.
Hi,
I may have found an issue with validators and validation messages.
To make the plunker simple I just checked if the value is empty, but in my real case the validation is more complex.
If I have a field with $validators and broadcasts schemaFormValidate without touching it, the field is set as invalid as expected but the validation message does not appear. To get the error message, I have to type anything in the field and then clear that.
Am I missing something?
Steps to reproduce:
Expected behaviour
I expected that the form would be validated and the error message would appear because the field is empty
Actual behaviour
The form was validated as expected, the field was set as invalid (error feedback appears), but the error message does not appear.
Gist/Plunker/Demo
https://plnkr.co/edit/IuTv9HdwHRJpT1so6J6u
Related issues
I didn't find any report of this issue or something related, sorry if it exists...
@json-schema-form/angular-schema-form-lead
The text was updated successfully, but these errors were encountered: