Frontmatter
| id | 4515 |
| title | form.Container: setValues() => no support for nested structures |
| state | Closed |
| labels | bug |
| assignees | tobiu |
| createdAt | Jun 27, 2023, 7:21 PM |
| updatedAt | Jun 27, 2023, 7:35 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4515 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 27, 2023, 7:35 PM |
This bug sneaked into the framework when adding the
setConfigs()method.The current logic:
async setValues(values={}, suspendEvents=false) { Object.entries(values).forEach(([key, value]) => { values[key] = {value} }) await this.setConfigs(values, suspendEvents) }is fine for simple forms, but not sufficient for nested structures.
All top level (root) items will get prefixed with
value. However, we want to do this for all leave items instead.This one will need testing!
@subramaniyamP: thanks for the heads up!
FYI: @dztoprak @Dinkh