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

bug(Iterate.Array): Iterate.Array does not work within a Form.Section with a path #3995

Open
andlbrei opened this issue Sep 24, 2024 · 1 comment

Comments

@andlbrei
Copy link
Contributor

🐛 Bug Report

When Iterate.Array is within a Form.Section with a defined path, nothing happens when trying to add an item to to the array.

Screen.Recording.2024-09-24.at.22.57.50.mov

To Reproduce

Steps to reproduce the behavior:

https://codesandbox.io/p/sandbox/iterate-form-section-path-wp3cs7

Expected behavior

Expect object to be added to the array if the object is valid.

Eufemia Version

10.50.0

@andlbrei
Copy link
Contributor Author

andlbrei commented Oct 29, 2024

I tried this again with v10.53.0, and now the containers do not render.
New reprod:
https://codesandbox.io/p/sandbox/iterate-form-section-path-10-53-0-fvstp7

Also (let me know if I should create a separate issue) I found that when setting defaultValue on Iterate.Array if it has a parent Form.Section with a path, it uses the Form.Section path and the Iterate path like /{formSectionPath}/{iteratePath}/{index}, but not when inserting elements into the array; when editing or pushing it becomes /{formSectionPath}/{index}/{fieldPath}.
Reprod:
https://codesandbox.io/p/sandbox/iterate-path-issues-2r6fd5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant