Remove dom side-effect from rendering

This commit is contained in:
Eric Eastwood 2022-02-04 01:26:18 -06:00
parent 5805ce0310
commit eda179a154

View file

@ -59,7 +59,7 @@ export class TimelineView extends TemplateView<TimelineViewModel> {
// assume this view will be mounted in the parent DOM straight away
requestAnimationFrame(() => {
// do initial scroll positioning
this.restoreScrollPosition();
//this.restoreScrollPosition();
});
this.tilesView = new TilesListView(vm.tiles, () => this.restoreScrollPosition());
const root = t.div({className: "Timeline"}, [