Skip to content

LayoutGridField causes array items to collapse when edited all themes #4765

@clevinson

Description

@clevinson

Prerequisites

What theme are you using?

mantine

Version

6.0.0-beta.15

Current Behavior

When using LayoutGridField with the Mantine theme, array fields exhibit unexpected behavior where editing an added array item causes the entire entry to collapse/disappear from the form.

Steps to Reproduce

Load this example on rjsf-playground

The UI schema gets overridden when setting the theme to mantine, so you will have to manually set the uiSchema to:

{
  "ui:field": "LayoutGridField",
  "ui:layoutGrid": {
    "ui:row": {
      "children": [
        {
          "ui:row": {
            "children": [
              {
                "ui:col": {
                  "span": 12,
                  "children": [
                    "listOfStrings"
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}
  1. Set up the rjsf-playground with the above configuration
  2. Add a new item to the array using the add button
  3. Edit the field within the newly added array item
  4. Observe that the entire array entry collapses/disappears

Expected Behavior

Array items should remain visible and editable after being added and modified, similar to how they behave without LayoutGridField.

Environment

  • @rjsf/core: 6.0.0-beta.15
  • @rjsf/mantine: 6.0.0-beta.15
  • @mantine/core: 8.3.0
  • React: 19.1.0
  • Next.js: 15.5.2

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions