Skip to content

schemaFormValidate miss last field error on first digest cycle #907

Open
@ludovicPelle

Description

@ludovicPelle

Enhancement

As a developer, when I trigger schemaFormValidate, the last form field does not render errors, if i run another digest cycle , its ok

Expected behaviour

I expected schemaFormValidate works as expected

Actual behaviour

It actually need another digest cycle.

Gist/Plunker/Demo

I cant reproduce in plunker but, i reproduce on your demo page
http://schemaform.io/examples/bootstrap-example.html
open console
$('[name="ngform"]').scope().$broadcast('schemaFormValidate')
//the last field does not render error
//Force a digest cycle
$('[name="ngform"]').scope().$digest()
//and the last field error appear

Related issues

@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