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

[WIP] fix: form array validation (for rewrite) #199

Open
wants to merge 1 commit into
base: feat-rewrite
Choose a base branch
from

Conversation

maxime1992
Copy link
Contributor

This PR aims to fix #161 but unfortunately while it seems to be working just fine on the component hosting the FormArray, I've noticed that the error is not broadcasted up to the parent components.

Well, it actually is but one change detection cycle after :( And I'm unsure why.

I have a suspicion that it may be due to the fact that when the component is being initialised we're not re-sending the value up to the parent component which therefore doesn't call the validate hook? Unsure as I haven't found the time to dig much more into it.

I thought it'd be an easy fix but for now I want to get back on making sure we can release v6 asap and in order to do that we need to focus on the documentation 🙃.

If anyone wants to take a look why we're one tick too late please do 🙏 😸. Thanks!

@maxime1992 maxime1992 added scope: lib Anything related to the library itself PR-action: discuss This PR needs some discussion PR-state: WIP This PR is a work in progress type: bug/fix This is a bug or at least needs a fix workaround: none No workaround labels Dec 29, 2020
@maxime1992 maxime1992 self-assigned this Dec 29, 2020
@maxime1992 maxime1992 changed the base branch from master to feat-rewrite December 29, 2020 15:01
…t fine on the component itself but it's not propagating this error to the parent components on the same tick. It's fine after another CD though but unsure why we're missing 1 tick for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-action: discuss This PR needs some discussion PR-state: WIP This PR is a work in progress scope: lib Anything related to the library itself type: bug/fix This is a bug or at least needs a fix workaround: none No workaround
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FormArray length validation in NgxSubFormComponent doesn´t propagate validity
1 participant