Skip to content

Unable to add record to table #4415

@brampurnot

Description

@brampurnot

Prerequisites

What theme are you using?

core

What is your question?

So I'm working with a complex json schema that gets generated dynamically. So the structure could be different. Attached is an example (json schema and ui schema is in the same file).

The problem happens when I try to add a row to the table. It basically adds the empty object but then deletes it right away. I have been debugging it for quite some time and it seems to be caused by the validations. When I deactivate the validations, then it works fine. Also when I add default values, it works fine.

I would expect it to at least add the record and then show the errors on the screen but that doesn't seem to work. Is there a way to handle this? I was thinking of deactivating validation till the form is submitted but just wanted to check if there is no easier standard way to do it.

example-schema.json

Any help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageInitial label given, to be assigned correct labels and assignedquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions