提交 e723f545 编写于 作者: J Joao Moreno

fixes #44389

上级 5728c45c
......@@ -115,7 +115,7 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
this._domNode.appendChild(this.scrollableElement.getDomNode());
container.appendChild(this._domNode);
this.disposables = [this.rangeMap, this.gesture, this.scrollableElement];
this.disposables = [this.rangeMap, this.gesture, this.scrollableElement, this.cache];
this.scrollableElement.onScroll(this.onScroll, this, this.disposables);
domEvent(this.rowsContainer, TouchEventType.Change)(this.onTouchChange, this, this.disposables);
......
......@@ -82,7 +82,7 @@ export class RowCache<T> implements IDisposable {
this.cache.forEach((cachedRows, templateId) => {
for (const cachedRow of cachedRows) {
const renderer = this.renderers[templateId];
const renderer = this.renderers.get(templateId);
renderer.disposeTemplate(cachedRow.templateData);
cachedRow.domNode = null;
cachedRow.templateData = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册