-
Notifications
You must be signed in to change notification settings - Fork 556
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
Hide expression on repeat component breaks defaultValues of nested fields #3891
Comments
I am also facing similar kind of issue. |
Hi, I'll this week if time allows 🙏 . |
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. |
Hello @aitboudad , Thanks for looking in to this bug. In our case, We are facing slightly diff issue..We have Json schema, in which we are applying some patches, which contains hide expression on some fields
In schema these fields have But when form renders initially, fields which contains So I am not sure what is causing such issue, Do you have any suggestion on what is wrong here ? |
@uagrawal-evertz please open a new ticket with a reproduction example so we may be able to check it further. |
Description
When using
expressions.hide
on a custom repeating section to conditionnally display it,defaultValue
is ignored in fields in thefieldGroup
. If theexpressions.hide
is not present, default values are applied as expected when adding items.Minimal Reproduction
https://stackblitz.com/edit/angular-e9plpt?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Frepeat-section.type.ts,src%2Fstyles.scss,src%2Fapp%2Fapp.component.html
In this example, the
defaultValue: 'Buy eggs',
is not applied as expected because there is the hide expression line 46.Your Environment
Additional context
It's maybe related to that issue #2651
The text was updated successfully, but these errors were encountered: