-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
fix(forms): getRawValue correctly work with nested form groups #12964
Conversation
c870c97
to
b8d2fce
Compare
It's also |
cbf9e9e
to
88a7944
Compare
modules/@angular/forms/src/model.ts
Outdated
} else { | ||
throw new Error(`Expected ${this} to be an instance of FormGroup.`); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these methods need more discussion, so the bug fix should be separate. Can you move into a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
expect(a.getRawValue()).toEqual([{'c2': 'v2', 'c3': 'v3'}, ['v4', 'v5']]); | ||
}); | ||
|
||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can you move this section down below value
? Kind of weird having it first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
88a7944
to
d75c919
Compare
@kara ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…Arrays (angular#12964) Closed angular#12963 PR Close angular#12964
…Arrays (angular#12964) Closed angular#12963 PR Close angular#12964
…Arrays (angular#12964) Closed angular#12963 PR Close angular#12964
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #12963