@vaadin/component-base 24.3.0-alpha4 → 24.3.0-alpha6
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/component-base",
|
|
3
|
-
"version": "24.3.0-
|
|
3
|
+
"version": "24.3.0-alpha6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
36
|
"@vaadin/vaadin-development-mode-detector": "^2.0.0",
|
|
37
37
|
"@vaadin/vaadin-usage-statistics": "^2.1.0",
|
|
38
|
-
"lit": "^
|
|
38
|
+
"lit": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@esm-bundle/chai": "^4.3.4",
|
|
42
|
-
"@vaadin/testing-helpers": "^0.
|
|
42
|
+
"@vaadin/testing-helpers": "^0.6.0",
|
|
43
43
|
"sinon": "^13.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2721ab38ba3bc7d38dc1241016915354617ff659"
|
|
46
46
|
}
|
package/src/define.js
CHANGED
|
@@ -136,6 +136,7 @@ export class IronListAdapter {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
flush() {
|
|
139
|
+
const startPhysicalCount = this._physicalCount;
|
|
139
140
|
// The scroll target is hidden.
|
|
140
141
|
if (this.scrollTarget.offsetHeight === 0) {
|
|
141
142
|
return;
|
|
@@ -153,6 +154,11 @@ export class IronListAdapter {
|
|
|
153
154
|
if (this.__debouncerWheelAnimationFrame) {
|
|
154
155
|
this.__debouncerWheelAnimationFrame.flush();
|
|
155
156
|
}
|
|
157
|
+
|
|
158
|
+
if (this._physicalCount !== startPhysicalCount) {
|
|
159
|
+
// Flushing again until physical count stabilizes fixes https://github.com/vaadin/flow-components/issues/5595#issuecomment-1770278913
|
|
160
|
+
this.flush();
|
|
161
|
+
}
|
|
156
162
|
}
|
|
157
163
|
|
|
158
164
|
update(startIndex = 0, endIndex = this.size - 1) {
|