@smilodon/core 1.0.13 → 1.0.14

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.cjs CHANGED
@@ -962,11 +962,6 @@ class EnhancedSelect extends HTMLElement {
962
962
  this._errorMessage = '';
963
963
  this._boundArrowClick = null;
964
964
  console.log('[EnhancedSelect] Constructor called');
965
- // WORKAROUND: Force display style on host element for Angular compatibility
966
- // Angular's rendering seems to not apply :host styles correctly in some cases
967
- this.style.display = 'block';
968
- this.style.width = '100%';
969
- console.log('[EnhancedSelect] Forced host display styles');
970
965
  this._shadow = this.attachShadow({ mode: 'open' });
971
966
  console.log('[EnhancedSelect] Shadow root attached:', this._shadow);
972
967
  this._uniqueId = `enhanced-select-${Math.random().toString(36).substr(2, 9)}`;
@@ -1020,6 +1015,12 @@ class EnhancedSelect extends HTMLElement {
1020
1015
  }
1021
1016
  connectedCallback() {
1022
1017
  console.log('[EnhancedSelect] connectedCallback called');
1018
+ // WORKAROUND: Force display style on host element for Angular compatibility
1019
+ // Angular's rendering seems to not apply :host styles correctly in some cases
1020
+ // Must be done in connectedCallback when element is attached to DOM
1021
+ this.style.display = 'block';
1022
+ this.style.width = '100%';
1023
+ console.log('[EnhancedSelect] Forced host display styles');
1023
1024
  // Load initial data if server-side is enabled
1024
1025
  if (this._config.serverSide.enabled && this._config.serverSide.initialSelectedValues) {
1025
1026
  this._loadInitialSelectedItems();