bpmn-io / form-js

View and visually edit JSON-based forms.
https://bpmn.io/toolkit/form-js/
Other
418 stars 108 forks source link

Dynamic lists truncate when they aren't expanded #1230

Closed Skaiir closed 3 months ago

Skaiir commented 3 months ago

Describe the Bug

There is currently an issue where dynamic lists will not propagate data if they have not been expanded.

Steps to Reproduce

  1. open the playground
  2. add a dynamic list and some inner field (say, keyed to myItems & itemName)
  3. set the input data to a list of more than 5 items:
{
  "myItems": [
    {
      "itemName": "a"
    },
    {
      "itemName": "b"
    },
    {
      "itemName": "c"
    },
    {
      "itemName": "d"
    },
    {
      "itemName": "e"
    },
    {
      "itemName": "f"
    },
    {
      "itemName": "g"
    }
  ]
}

4. (optional) if the dynamic list is not collapsed at this point, collapse it
5. change the value of the last item
6. any item beyond the 5th isn't expanded (excepted) but also isn't available in the output data (very wrong)

Expected Behavior

  1. the collapsed or expanded states of a dynamic list should be purely visual and have no bearing on the output data

Related

internal: https://jira.camunda.com/browse/SUPPORT-23067?atlLinkOrigin=c2xhY2staW50ZWdyYXRpb258aXNzdWU%3D

Skaiir commented 3 months ago

Closed via https://github.com/bpmn-io/form-js/pull/1248.