Skip to content

Defaulting value is set even when condition is false #868

Open
@amir707

Description

@amir707

Enhancement

As a user/developer, when I click save on schema form I should have the model without any invisible fields

Expected behaviour

I expected model not to have the field with its default when the field is not visible (condition returns false)

Actual behaviour

The model actually has the field with its default value.

Gist/Plunker/Demo

https://plnkr.co/edit/wNvtmtFSgcUtHK2ihfyK?p=preview

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions