@smilodon/core 1.0.15 → 1.0.16

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/dist/index.umd.js CHANGED
@@ -1499,10 +1499,17 @@
1499
1499
  }
1500
1500
  `;
1501
1501
  console.log('[EnhancedSelect] _initializeStyles: Created style element, content length:', style.textContent?.length || 0);
1502
- console.log('[EnhancedSelect] _initializeStyles: Appending style to shadow root...');
1503
- this._shadow.appendChild(style);
1504
- console.log('[EnhancedSelect] _initializeStyles: Style appended, shadow root children:', this._shadow.children.length);
1502
+ console.log('[EnhancedSelect] _initializeStyles: Shadow root children BEFORE:', this._shadow.children.length);
1503
+ // Insert as first child to ensure styles are processed first
1504
+ if (this._shadow.firstChild) {
1505
+ this._shadow.insertBefore(style, this._shadow.firstChild);
1506
+ }
1507
+ else {
1508
+ this._shadow.appendChild(style);
1509
+ }
1510
+ console.log('[EnhancedSelect] _initializeStyles: Style inserted, shadow root children AFTER:', this._shadow.children.length);
1505
1511
  console.log('[EnhancedSelect] _initializeStyles: Shadow root has style element:', !!this._shadow.querySelector('style'));
1512
+ console.log('[EnhancedSelect] _initializeStyles: Style sheet rules:', style.sheet?.cssRules?.length || 'NOT PARSED');
1506
1513
  }
1507
1514
  _attachEventListeners() {
1508
1515
  // Arrow click handler