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

form.update() problem with array of objects having 'value' property #324

Closed
AndrewGulidov opened this issue Sep 11, 2017 · 1 comment
Closed

Comments

@AndrewGulidov
Copy link

Hello.
If I want to populate a field with an array of objects it works fine in almost all cases. But if an object has property named 'value' something strange happens.
For example if I have a following array:

[{id:1, name 'name'}]

after form.update({arrayField: array}) in the arrayField's value I have the passed array, But if we have an array like following:

[{id:1, name 'name', value: 'some value'}]

after form.update({arrayField: array}) in the arrayField's value I have 'some value' instead of an array.
The same result if I try to use add() instead of update.
If it is an expected behavior, could you please let me know, how can I populate the array field with this kind of object?

Thanks in advance.

@foxhound87
Copy link
Owner

I replicated and found the issue, but I have to test it more.

Thank You for reporting this.

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

No branches or pull requests

2 participants