Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(VirtuaRepeat): don't calcuate size when not attached
  • Loading branch information
bigopon committed Dec 8, 2017
1 parent 68cb7ec commit 0f03dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual-repeat.js
Expand Up @@ -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;
Expand Down

0 comments on commit 0f03dff

Please sign in to comment.