formio / formio

A Form and Data Management Platform for Progressive Web Applications.

Home Page:https://form.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Default value of hidden nested components keys - not cleared from the submission when inside another edit grid.

llaurentiu opened this issue · comments

Having:

  • A parent edit grid edited in a modal (grid 'template' has modal = true)
  • Another edit grid/container inside the parent edit grid.
  • A component (eg: radio/checkbox) that controls the visibility of the inner grid/container

then:

  • When we show the inner grid/container by triggering the conditional
  • Then we hide the inner grid/container again

=> the inner grid/container keys (the default value - [] / {}) are not removed from the submission.
image

Correct behavior:
components that are hidden by logic, that have clearOnHide = true, should be removed from the submission.

JsFiddle here: https://jsfiddle.net/tcLbx7pe/

happens in the last stable: 4.18.0 too.

@llaurentiu Thank you for the report, we have a ticket on our backlog to address this, and appreciate the contribution here.

For internal reference: FIO-8344

After review, we don't expect to prioritize this in the near future but would gladly review any contributions to resolve this behavior.