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

Wrong default values in arrays #3916

Closed
jma opened this issue May 16, 2024 · 1 comment · Fixed by #3923
Closed

Wrong default values in arrays #3916

jma opened this issue May 16, 2024 · 1 comment · Fixed by #3923
Labels

Comments

@jma
Copy link

jma commented May 16, 2024

Description
A wrong default value is present in the formControl

Minimal Reproduction

https://stackblitz.com/edit/angular-kwmyzs-pr8dhu?file=src%2Fassets%2Fjson-schema%2Farrays.json,src%2Fapp%2Farray.type.ts,src%2Fapp%2Fapp.component.html

Several wired behaviors are present:

  1. If I modify the value of the first element (val1) and I press the clear button, I should retrieve the default value which is "default"
  2. If I insert a new item after the first item (first "+" button), I can see the wrong default value on the top of the page. Moreover if I press the clear button of the new inserted item, I got the wrong default value (val2) instead of "default"
  3. If I insert a new item at the end of the array everything is ok.

Thanks in advance.

@aitboudad
Copy link
Member

This issue has been fixed and released as part of v6.3.2 release.

Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

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

Successfully merging a pull request may close this issue.

2 participants