Skip to content

Determining when validation is complete #686

Open
@AndrewIsh

Description

@AndrewIsh

Enhancement

Sending the 'schemaFormValidate' broadcast prompts a validation of the form. However, if you then want to perform an action dependent on the form's $valid property immediately after the validation, there is no way of knowing when the validation is complete. This can lead to a race condition whereby the testing of the form's $valid property occurs before the validation is complete.

Expected behaviour

Either prompting form validation should be done via a method call that returns a promise or, maybe, upon form validation, ASF should send a broadcast announcing the fact.

@json-schema-form/angular-schema-form-lead

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions