Use local version 0.7 of lit-virtualizer (#9321)

This commit is contained in:
Bram Kragten
2021-06-01 11:39:15 +02:00
committed by GitHub
parent 00c6b0f8ed
commit 2427d68aa1
64 changed files with 4207 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
import { Layout1d, scroll } from "@lit-labs/virtualizer";
import { Layout1d, scroll } from "../../resources/lit-virtualizer";
import deepClone from "deep-clone-simple";
import {
css,
@@ -340,11 +340,10 @@ export class HaDataTable extends LitElement {
${scroll({
items: this._items,
layout: Layout1d,
// @ts-expect-error
renderItem: (row: DataTableRowData, index) => {
// not sure how this happens...
if (!row) {
return "";
return html``;
}
if (row.append) {
return html`