@vaadin/virtual-list 23.0.0-alpha1 → 23.0.0-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/virtual-list",
|
|
3
|
-
"version": "23.0.0-
|
|
3
|
+
"version": "23.0.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "23.0.0-
|
|
37
|
-
"@vaadin/vaadin-lumo-styles": "23.0.0-
|
|
38
|
-
"@vaadin/vaadin-material-styles": "23.0.0-
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "23.0.0-
|
|
36
|
+
"@vaadin/component-base": "23.0.0-alpha2",
|
|
37
|
+
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha2",
|
|
38
|
+
"@vaadin/vaadin-material-styles": "23.0.0-alpha2",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@esm-bundle/chai": "^4.3.4",
|
|
43
|
-
"@vaadin/polymer-legacy-adapter": "23.0.0-
|
|
43
|
+
"@vaadin/polymer-legacy-adapter": "23.0.0-alpha2",
|
|
44
44
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
45
45
|
"lit": "^2.0.0",
|
|
46
46
|
"sinon": "^9.2.4"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
|
|
49
49
|
}
|
|
@@ -146,14 +146,14 @@ class VirtualList extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/** @private */
|
|
149
|
-
__itemsOrRendererChanged(items
|
|
149
|
+
__itemsOrRendererChanged(items, renderer, virtualizer) {
|
|
150
150
|
// If the renderer is removed but there are elements created by
|
|
151
151
|
// a previous renderer, we need to request an update from the virtualizer
|
|
152
152
|
// to get the already existing elements properly cleared.
|
|
153
153
|
const hasRenderedItems = this.childElementCount > 0;
|
|
154
154
|
|
|
155
155
|
if ((renderer || hasRenderedItems) && virtualizer) {
|
|
156
|
-
virtualizer.size = items.length;
|
|
156
|
+
virtualizer.size = (items || []).length;
|
|
157
157
|
virtualizer.update();
|
|
158
158
|
}
|
|
159
159
|
}
|