@getflip/swirl-components 0.300.2 → 0.300.3

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/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-03-06T16:19:16",
2
+ "timestamp": "2025-03-07T08:46:44",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -60,6 +60,9 @@ const SwirlBox = class {
60
60
  });
61
61
  }
62
62
  updateScrollState() {
63
+ if (!this.el.isConnected) {
64
+ return;
65
+ }
63
66
  const newScrollState = {
64
67
  scrollable: this.el.scrollHeight > this.el.clientHeight,
65
68
  scrolledToTop: this.el.scrollTop === 0,
@@ -120,7 +123,7 @@ const SwirlBox = class {
120
123
  "box--scrolled-to-top": this.scrollState.scrolledToTop,
121
124
  "box--scrolled-to-bottom": this.scrollState.scrolledToBottom,
122
125
  });
123
- return (index.h(index.Host, { key: 'c8296ade3ea2dcaa4e14897557c343b433de562c', class: className, onScroll: this.onScroll, style: styles }, index.h("slot", { key: 'a0029e22b4fc9b60cb679af27f7ae66d366c0ef4' })));
126
+ return (index.h(index.Host, { key: '3fe66bb155b98d59e332ccc874be031a02f75ca4', class: className, onScroll: this.onScroll, style: styles }, index.h("slot", { key: '48f27e0dd192e68a9605d97e3a685a2c89ec5cb0' })));
124
127
  }
125
128
  get el() { return index.getElement(this); }
126
129
  };
@@ -53,6 +53,9 @@ export class SwirlBox {
53
53
  });
54
54
  }
55
55
  updateScrollState() {
56
+ if (!this.el.isConnected) {
57
+ return;
58
+ }
56
59
  const newScrollState = {
57
60
  scrollable: this.el.scrollHeight > this.el.clientHeight,
58
61
  scrolledToTop: this.el.scrollTop === 0,
@@ -113,7 +116,7 @@ export class SwirlBox {
113
116
  "box--scrolled-to-top": this.scrollState.scrolledToTop,
114
117
  "box--scrolled-to-bottom": this.scrollState.scrolledToBottom,
115
118
  });
116
- return (h(Host, { key: 'c8296ade3ea2dcaa4e14897557c343b433de562c', class: className, onScroll: this.onScroll, style: styles }, h("slot", { key: 'a0029e22b4fc9b60cb679af27f7ae66d366c0ef4' })));
119
+ return (h(Host, { key: '3fe66bb155b98d59e332ccc874be031a02f75ca4', class: className, onScroll: this.onScroll, style: styles }, h("slot", { key: '48f27e0dd192e68a9605d97e3a685a2c89ec5cb0' })));
117
120
  }
118
121
  static get is() { return "swirl-box"; }
119
122
  static get encapsulation() { return "shadow"; }