Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable array controls panel fail when has controls #1501

Open
RelicOfTesla opened this issue Mar 1, 2024 · 0 comments
Open

disable array controls panel fail when has controls #1501

RelicOfTesla opened this issue Mar 1, 2024 · 0 comments
Assignees

Comments

@RelicOfTesla
Copy link

RelicOfTesla commented Mar 1, 2024

General information

  • json-editor version: 2.14.1

Expected behavior

not some delete button.

Actual behavior

hide button after must add row

Steps to reproduce the behavior

Direct link to example: https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUBXRBTA+vAhgLa75RQBOMARulFsihelgDQgTliHQ5VYBmYcrgAmWADZY6qJqxCZRA/OnFQcAN3zjmDWW0L4AHjjHQAFqgAMbGmQQ5EUUrkJgxqAIxsAxvmwOsJBhYdVwOSCxyKABPAPxybwtGcmY2RDMwAHccSM5yBhAYeDpyfG9YBBA2GG8EcWpUEEFi/Ez6LiwAVirwKgArLHKccXxosFpG+CEDcR7ERKwDVFBwiEjYemWQKnwRDy2YtcawfsGoHtX1mE20ECmoABVotYAxa/ERLbF+ZVVPAF82PFStF9rdDlhGsDRj1BOQDOcUCAnFRJD1gosGKAIY1HJR4ABzECA8DQOBIL4wRD4VEkcggnDCIRicgyFJyERUmmSHDQ2JiSR0YZ+NScTJs1IgTnU2m8+mjEwSKQkcTiRlZXTs/7akk7EQAJgOz0hSJOA3KF04ayi1yxID5hvBxqh8uisOmpEaKLR1TohDtOKReKKRJJkAqFNu0u5dIZTPILIlHK5sr5isFuBGjnV4uSkujqdd6eVvNVOc1zB1OrYUDMixN2zAYCgePwEAALMT/kA=

{
  "properties": {
    "bad1": {
      "type": "object",
      "properties": {
        "notTypeField": {
          "default": 1
        },
        "array1": {
          "type": "array",
          "format": "table",
          "items": {
            "type": "string"
          },
          "options": {
            "disable_array_reorder": true,
            "disable_array_delete_last_row": true,
            "disable_array_delete_all_rows": true
          }
        }
      }
    },
    "bad2": {
      "type": "object",
      "properties": {
        "array2": {
          "type": "array",
          "format": "table",
          "items": {
            "type": "string"
          },
          "options": {
            "disable_array_reorder": true,
            "disable_array_delete_last_row": true,
            "disable_array_delete_all_rows": true
          }
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants