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
There is a bug in virtual scroll. When I scroll a little bit I see a lot of errors in console
ERROR Error: ViewDestroyedError: Attempt to use a destroyed view: detectChanges
at viewDestroyedError (core.js:7606)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:11051)
at checkAndUpdateView (core.js:10451)
at callWithDebugContext (core.js:11344)
at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.js:11022)
at ViewRef_.push../node_modules/@angular/core/fesm5/core.js.ViewRef_.detectChanges (core.js:8838)
at CdkVirtualForOf.push../node_modules/@angular/cdk/esm5/scrolling.es5.js.CdkVirtualForOf._updateContext (scrolling.es5.js:1729)
at CdkVirtualForOf.push../node_modules/@angular/cdk/esm5/scrolling.es5.js.CdkVirtualForOf.ngDoCheck (scrolling.es5.js:1648)
at checkAndUpdateDirectiveInline (core.js:9246)
at checkAndUpdateNodeInline (core.js:10507)
Bug, feature request, or proposal:
There is a bug in virtual scroll. When I scroll a little bit I see a lot of errors in console
In my understanding function
_cacheView
(https://github.com/angular/material2/blob/master/src/cdk/scrolling/virtual-for-of.ts#L323) destroy view, but do not remove it from_viewContainerRef
so_updateContext
try to work with destroyed view.What is the expected behavior?
There should not be any errors.
What is the current behavior?
What are the steps to reproduce?
https://angular-xd2wda.stackblitz.io
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 7.0.2
cdk 7.0.2
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: