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