Skip to content

Commit 256e07c

Browse files
[FS-104841]: VC changes (#1)
1 parent 9b377dc commit 256e07c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

addon/-private/data-view/elements/virtual-component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export default class VirtualComponent {
5050
while (upperBound !== lowerBound) {
5151
upperBound = upperBound.nextSibling;
5252

53-
if (upperBound instanceof Element) {
53+
if (upperBound instanceof HTMLElement) {
5454
top = Math.min(top, upperBound.getBoundingClientRect().top);
5555
bottom = Math.max(bottom, upperBound.getBoundingClientRect().bottom);
5656
}
5757

5858
if (DEBUG) {
59-
if (upperBound instanceof Element) {
59+
if (upperBound instanceof HTMLElement) {
6060
continue;
6161
}
6262

addon/-private/data-view/radar/radar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export default class Radar {
368368

369369
let scrollContainerMaxHeight = 0;
370370

371-
if (_scrollContainer instanceof Element) {
371+
if (_scrollContainer instanceof HTMLElement) {
372372
const maxHeightStyle = window.getComputedStyle(_scrollContainer).maxHeight;
373373

374374
if (maxHeightStyle !== 'none') {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@html-next/vertical-collection",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "infinite-scroll, done right. done.",
55
"keywords": [
66
"occlusion",

0 commit comments

Comments
 (0)