Skip to content

empty data property #1923

Open
Open
@zeroamps

Description

@zeroamps

Is your feature request related to a problem? Please describe.

Hi, I'd like to be able configure that If I remove some text from a control the property for that control is removed from the data object.

before editing
this.data = {}
some text
this.data = { name: "sometext" }
after removing the text from the control it stays like this
this.data = { name: "" }

I'd like to have some option to tell please delete this property from an object if it's empty.

The same problem is with arrays If I delete the last item from an array it stays like this
this.data = { items: [] }

Describe the solution you'd like

To have an option which tells delete or not delete an empty property from an object.

Describe alternatives you've considered

I have to do that manfully in my code at the moment.

Framework

Angular

RendererSet

Material

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions