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

fix(core): fix OnPush FieldTypes not being change detected #2192

Merged
merged 1 commit into from Apr 21, 2020
Merged

fix(core): fix OnPush FieldTypes not being change detected #2192

merged 1 commit into from Apr 21, 2020

Conversation

skrtheboss
Copy link
Contributor

@skrtheboss skrtheboss commented Apr 21, 2020

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Fix OnPush FieldTypes not being change detected on expressionProperties changes.

What is the current behavior? (You can also link to an open issue here)
If ChangeDetectionStrategy.OnPush is used in a custom FieldType, then the templateOptions which are generated via expressionProperties, do not result in a changeDetection check.

What is the new behavior (if this is a feature change)?
If a expression property changes, the FieldType is change detected properly.

Please check if the PR fulfills these requirements

Fix OnPush FieldTypes not being change detected on expressionProperties changes
@netlify
Copy link

netlify bot commented Apr 21, 2020

Deploy preview for formly-dev ready!

Built with commit 701e2e6

https://deploy-preview-2192--formly-dev.netlify.app

@kenisteward
Copy link
Collaborator

Thanks for this.

@aitboudad aitboudad changed the title fix(core): fix OnPush FieldTypes not being change detected (#2191) fix(core): fix OnPush FieldTypes not being change detected Apr 21, 2020
@aitboudad aitboudad merged commit 1800338 into ngx-formly:v5 Apr 21, 2020
@aitboudad
Copy link
Member

Thank you @skrtheboss!

aitboudad pushed a commit that referenced this pull request Apr 22, 2020
Fix OnPush FieldTypes not being change detected on expressionProperties changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants