Permalink
Browse files

fix(VirtuaRepeat): don't calcuate size when not attached

  • Loading branch information...
bigopon
bigopon committed Dec 8, 2017
1 parent 68cb7ec commit 0f03dffe16a0bb182600fbdd69c4cb162d75a36c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/virtual-repeat.js
View
@@ -155,7 +155,7 @@ export class VirtualRepeat extends AbstractRepeater {
itemsChanged(): void {
this._unsubscribeCollection();
// still bound?
if (!this.scope) {
if (!this.scope || !this._isAttached) {
return;
}
let reducingItems = false;

0 comments on commit 0f03dff

Please sign in to comment.