You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
If ChangeDetectionStrategy.OnPush is used in a custom FieldType, then the templateOptions which are generated via expressionProperties, do not result in a changeDetection check.
I think the problem is here, since ref.changeDetectorRef.markForCheck() does not work as expected (see angular issue).
A possible solution as suggested in this comment, would be:
Description
If
ChangeDetectionStrategy.OnPush
is used in a custom FieldType, then thetemplateOptions
which are generated via expressionProperties, do not result in a changeDetection check.I think the problem is here, since ref.changeDetectorRef.markForCheck() does not work as expected (see angular issue).
A possible solution as suggested in this comment, would be:
Minimal Reproduction
The view should dispaly the updated options, but it does not. If we remove the OnPush strategy, everything works as expected
https://stackblitz.com/edit/angular-vmswdr
Your Environment
PS
If you agree with me I can make a pull request.
Here is a StackBlitz with the fixed changeDetection.
The text was updated successfully, but these errors were encountered: