@blockquote-web-components/blockquote-tabs 1.4.2 → 1.4.4

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": "@blockquote-web-components/blockquote-tabs",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Webcomponent blockquote-tabs following open-wc recommendations",
5
5
  "keywords": [
6
6
  "lit",
@@ -115,7 +115,7 @@
115
115
  }
116
116
  },
117
117
  "dependencies": {
118
- "@blockquote-web-components/blockquote-mixin-slot-content": "^1.6.2",
118
+ "@blockquote-web-components/blockquote-mixin-slot-content": "^1.7.1",
119
119
  "@juggle/resize-observer": "^3.4.0",
120
120
  "@lit-labs/observers": "^2.0.0",
121
121
  "lit": "^3.1.1"
@@ -129,5 +129,5 @@
129
129
  "access": "public"
130
130
  },
131
131
  "customElements": "custom-elements.json",
132
- "gitHead": "6fe48d5f8dc077b549d3c11ab3541a0a1fe84d58"
132
+ "gitHead": "94364aca60812a07a7821359f9ebe5127c061ea5"
133
133
  }
@@ -123,6 +123,8 @@ export class BlockquoteTabs extends BlockquoteMixinSlotContent(LitElement) {
123
123
  },
124
124
  skipInitial: true,
125
125
  });
126
+
127
+ this.addEventListener('slotchanges', this._onSlotChanges);
126
128
  }
127
129
 
128
130
  _selectedIsInRange(idx) {
@@ -145,11 +147,6 @@ export class BlockquoteTabs extends BlockquoteMixinSlotContent(LitElement) {
145
147
  return this._tabList.length;
146
148
  }
147
149
 
148
- connectedCallback() {
149
- super.connectedCallback?.();
150
- this.shadowRoot?.addEventListener('slotchanges', this._onSlotChanges);
151
- }
152
-
153
150
  firstUpdated(props) {
154
151
  super.firstUpdated && super.firstUpdated(props);
155
152
  const tabSlot = this.shadowRoot?.querySelector('[name="tab"]');
@@ -30,6 +30,8 @@ export class BlockquoteTab extends BlockquoteMixinSlotContent(LitElement) {
30
30
  slot: 'tab',
31
31
  tabindex: 0,
32
32
  };
33
+
34
+ this.addEventListener('slotchanges', this._onSlotChanges);
33
35
  }
34
36
 
35
37
  static get styles() {
@@ -38,8 +40,6 @@ export class BlockquoteTab extends BlockquoteMixinSlotContent(LitElement) {
38
40
 
39
41
  connectedCallback() {
40
42
  super.connectedCallback?.();
41
- this.shadowRoot?.addEventListener('slotchanges', this._onSlotChanges);
42
-
43
43
  this.__setArrayAttibute(this.globalRootAttributes);
44
44
  }
45
45