Skip to content

Overly deep nesting of objects, there is an error in assigning values to formData. #4334

@amazingywk

Description

@amazingywk

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

In this playground example,When we change the value of dropdown A, B and C do not appear in formData. We suspect that it is a bug caused by overly deep nesting of objects.

{
  "type": "object",
  "properties": {
    "abc": {
      "type": "object",
      "properties": {
        "a": {
          "type": "string",
          "enum": [
            "aaa",
            "bbb"
          ],
          "enumNames": [
            "test1",
            "test2"
          ],
          "default": "aaa"
        }
      },
      "dependencies": {
        "a": {
          "oneOf": [
            {
              "properties": {
                "a": {
                  "enum": [
                    "bbb"
                  ]
                },
                "b": {
                  "type": "object",
                  "properties": {
                    "c": {
                      "type": "string",
                      "enum": [
                        "withBefore"
                      ],
                      "enumNames": [
                        "111"
                      ],
                      "default": "withBefore"
                    }
                  }
                }
              }
            },
            {
              "properties": {
                "a": {
                  "enum": [
                    "aaa"
                  ]
                }
              }
            }
          ]
        }
      }
    }
  }
}

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Node:
- npm:

Anything else?

No response

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