jsonforms-editor icon indicating copy to clipboard operation
jsonforms-editor copied to clipboard

ObjectRenderer removes whole ui schema when any contained element is deleted

Open sdirix opened this issue 4 years ago • 0 comments

Description The ObjectRenderer (currently only available when manually editing the ui schema) renders a group with controls for all contained properties. All these elements are shown as deletable. If any of them is deleted, the whole ui schema is removed.

To reproduce Steps to reproduce the behavior:

  1. Go to https://jsonforms-editor.netlify.app/
  2. Use the following ui schema
    {
      "type": "VerticalLayout",
      "elements": [
        {
          "type": "Control",
          "scope": "#/properties/name"
        },
        {
          "type": "Control",
          "scope": "#/properties/personalData"
        }
      ]
    }
    
  3. Delete any of the object elements

Expected behavior Delete should not be offered on any of the object elements

Screenshots DeleteOnObject

sdirix avatar Dec 15 '20 12:12 sdirix