mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Fix update method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
4cb9adc9ea
commit
85924aba92
@ -130,11 +130,16 @@ export class LazyListView extends ListView {
|
|||||||
return this._parent;
|
return this._parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update(attributes) {
|
||||||
|
this._renderRange = null;
|
||||||
|
super.update(attributes);
|
||||||
|
this._renderIfNeeded();
|
||||||
|
}
|
||||||
|
|
||||||
loadList() {
|
loadList() {
|
||||||
if (!this._list) { return; }
|
if (!this._list) { return; }
|
||||||
this._subscription = this._list.subscribe(this);
|
this._subscription = this._list.subscribe(this);
|
||||||
this._childInstances = [];
|
this._childInstances = [];
|
||||||
// todo: this breaks update in parent
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user