Frontmatter
| id | 2129 |
| title | form.Fieldset: disableItemsOnCollapse_ config |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | May 23, 2021, 9:26 AM |
| updatedAt | May 23, 2021, 11:13 AM |
| githubUrl | https://github.com/neomjs/neo/issues/2129 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | May 23, 2021, 11:13 AM |
form.Fieldset: disableItemsOnCollapse_ config
tobiu assigned to @tobiu on May 23, 2021, 9:26 AM

tobiu
May 23, 2021, 10:30 AM
to further enhance this:
We need a map to store the initial disabled state of fieldset items. E.g. a map (object) with key {componentId}, value (disabledState).
In case we collapse a fieldset and a childItem is already disabled, it needs to be disabled when expanding the fieldset again.

tobiu
May 23, 2021, 10:35 AM
actually an array is better => only store disabled item ids.
tobiu closed this issue on May 23, 2021, 11:13 AM
in case you are working with forms, you can either improve the UX when fieldsets are collapsible or you might want to exclude fieldset items from getting submitted in case the fieldset is collapsed.
we need a new config to make it optional.