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

Block/discourage the use of dots in component keys? #4009

Closed
LaurensBurger opened this issue Mar 14, 2024 · 4 comments · Fixed by #4110 or open-formulieren/open-forms-sdk#668
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Mar 14, 2024

Thema / Theme

Form designer

Omschrijving / Description

currently a user can create a key that results in unexpected behavior.
example:
image

This key automagically changes the "veldengroep" to a dict/object?
image

In the submission the data is also inconsistent:
image
image

@LaurensBurger LaurensBurger added triage Issue needs to be validated. Remove this label if the issue considered valid. enhancement labels Mar 14, 2024
@sergei-maertens
Copy link
Member

This is formio's behaviour which we can't change, it's going to lead to a whole bunch of other unexpected problems.

The displaying of [object Object] for the fieldset should never happen, that's a bug on our end.

The submission admin/display of submitted data is some old code that can definitely be improved too, so let's just fix those things instead.

@joeribekker
Copy link
Contributor

@sergei-maertens refinement agrees.

@joeribekker joeribekker added bug Something isn't working and removed triage Issue needs to be validated. Remove this label if the issue considered valid. enhancement labels Mar 18, 2024
@joeribekker joeribekker added this to the Release 2.7.0 milestone Mar 18, 2024
@Viicos
Copy link
Contributor

Viicos commented Apr 3, 2024

I am not able to reproduce anymore on latest, however the merged data is indeed incorrect.

Edit: To reproduce, nested field in the fieldset needs to have the same key:
create a fieldset with key fieldset
create a textfield inside with key fieldset.textfield

However, editing an existing fieldset to follow this pattern leads to an error in the variables:
image

Viicos added a commit that referenced this issue Apr 3, 2024
Viicos added a commit that referenced this issue Apr 3, 2024
In the future, the `data` property could also
be removed, to enforce people using the state wrapper
instead.
Viicos added a commit that referenced this issue Apr 3, 2024
Viicos added a commit to open-formulieren/open-forms-sdk that referenced this issue Apr 4, 2024
sergei-maertens added a commit to open-formulieren/open-forms-sdk that referenced this issue Apr 4, 2024
@sergei-maertens
Copy link
Member

backend PR is still open

sergei-maertens added a commit that referenced this issue Apr 4, 2024
Viicos added a commit to open-formulieren/open-forms-sdk that referenced this issue Apr 10, 2024
A race condition is happening and the `useAsync` hook is being called
three times, and `onFormStart` would be called every time as
`onFormStartCalledRef` wasn't set to `true` by the first called in time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
4 participants