Skip to content

Categorization Control doesn't resolve in ListWithDetail #1713

@sdirix

Description

@sdirix

Describe the bug
A control which is placed within a categorization within a ListWithDetail doesn't resolve

To Reproduce
Schema

{
    "$id": "#schema",
    "type": "object",
    "properties": {
      "experiments": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "ID": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "additionalItems": false
        }
      }
    },
    "required": [
      "experiments"
    ]
  }

UI Schema

{
"type": "Categorization",
"elements": [
  {
    "type": "Category",
    "label": "Experiments",
    "elements": [
      {
        "type": "ListWithDetail",
        "scope": "#/properties/experiments",
        "options": {
          "labelRef": "#/items/properties/ID",
          "detail": {
            "type": "VerticalLayout",
            "elements": [
              {
                "type": "HorizontalLayout",
                "elements": [
                  {
                    "type": "Control",
                    "scope": "#/properties/ID"
                  }
                ]
              },
              {
                "type": "Categorization",
                "elements": [
                  {
                    "type": "Category",
                    "label": "Sequential",
                    "elements": [
                      {
                        "type": "VerticalLayout",
                        "elements": [
                          {
                            "type": "Control",
                            "scope": "#/properties/ID"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    ]
  }
]
}

Expected behavior
Control should resolve

Screenshots
ControlDoesntResolve

Used Setup (please complete the following information):

  • Framework: [angular]
  • RendererSet: [material]

Additional context
Reported in Spectrum: https://spectrum.chat/jsonforms/general/misunderstanding-something-about-scope~7c2f0f67-e64c-4eae-b714-b1dfce4a5138

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