Skip to content

Commit d83ba22

Browse files
authored
chore: remove text-field from grid performance dev page (#5303)
1 parent 4a48b6a commit d83ba22

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎dev/grid-performance.html‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
}
1616
}
1717

18-
vaadin-grid-cell-content > * {
18+
vaadin-grid-cell-content:not(:empty) {
1919
animation: content-ready 1s;
2020
}
2121
</style>
2222

2323
<script type="module">
2424
import '@vaadin/grid/all-imports';
25-
import '@vaadin/text-field';
26-
import '@vaadin/checkbox';
2725

2826
// Set up the grid
2927
const grid = document.querySelector('vaadin-grid');
@@ -39,16 +37,13 @@
3937
cb(pageItems, levelSize);
4038
};
4139

42-
for (let i = 0; i < 200; i++) {
40+
for (let i = 0; i < 400; i++) {
4341
const column = document.createElement('vaadin-grid-column');
4442
column.header = `Col ${i}`;
4543
column.width = '140px';
4644
column.flexShrink = 0;
4745
column.renderer = (root, column, model) => {
48-
if (!root.firstElementChild) {
49-
root.innerHTML = `<vaadin-text-field style="width: 100px"></vaadin-text-field>`;
50-
}
51-
root.firstElementChild.value = `${i} - ${model.item.name}`;
46+
root.textContent = `${i} - ${model.item.name}`;
5247
};
5348
grid.appendChild(column);
5449
}

0 commit comments

Comments
 (0)