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
This one has got me a bit perplexed. I'm optimizing a project and switched the changeDetection to ChangeDetectionStrategy.OnPush for a component that contains a reactive form using this library. All of the other form controls render properly, but the initial render of this control shows [object Object]. If I click on the input field and then click off, the input updates to the correct display value.
All of the other input fields on this form are simple strings...this is the only one that is an object.
Has anybody encountered this issue when using OnPush and have a suggestion on how to get the form control to show the correct value on load? I tried injecting ChangeDetectorRef and calling that after creating the form and on AfterViewInit, but neither helped.
Thanks for any suggestions
The text was updated successfully, but these errors were encountered:
This one has got me a bit perplexed. I'm optimizing a project and switched the changeDetection to ChangeDetectionStrategy.OnPush for a component that contains a reactive form using this library. All of the other form controls render properly, but the initial render of this control shows [object Object]. If I click on the input field and then click off, the input updates to the correct display value.
All of the other input fields on this form are simple strings...this is the only one that is an object.
Has anybody encountered this issue when using OnPush and have a suggestion on how to get the form control to show the correct value on load? I tried injecting ChangeDetectorRef and calling that after creating the form and on AfterViewInit, but neither helped.
Thanks for any suggestions
The text was updated successfully, but these errors were encountered: