-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Dropdown - ViewDestroyedError #7970
Comments
I'm getting same error even without disabling the dropdown. It seems to be related to FormBuilder. If I remove
|
Also getting this error. I created a minimal test (Angular CLI - based) project to demonstrate the issue https://github.com/cwatzl/primeng-bug-7970 It contains a test in
|
Hi, |
Well, whatever the culprit, for the time being I could work around this issue by downgrading to PrimeNG 7.1.3 (which in my application requires a compatibility hack for Angular 8, but I already have that in place). |
Have the same issue when trying to upgrade to Angular 8. Looks like the problem is this line of code here: if I wrap the if (!this.cd.destroyed) {
this.cd.detectChanges();
} the problem is gone. Not sure if its safe to use |
@stan187
@AustinMatherne I think that problem we see here, (in my case at least, where I hide and disable th dropdown), the culprit is primeng. It tries to detected changes on a component not in the view anymore. |
Minimal reproduction of the problem with instructions
Using
@angular/forms
'sFormBuilder
approach, set ap-dropdown
to disabledThe text was updated successfully, but these errors were encountered: