@descope/web-components-ui 1.114.0 → 1.115.0

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.
@@ -8273,11 +8273,17 @@ const ComboBoxMixin = (superclass) =>
8273
8273
  return {};
8274
8274
  };
8275
8275
 
8276
- this.setComboBoxDescriptor();
8277
- this.#overrideOverlaySettings();
8278
8276
  this.#overrideRenderer();
8279
8277
  this.#disableDataProviderFilterEventIfNeeded();
8280
8278
 
8279
+ // This is a workaround for a problem we have in Console App, where in ScreenBuilder - the inputElement is not ready when trying to
8280
+ // set the component's descriptor and override the overlay settings.
8281
+ // THIS IS A PROBLEM WITH THE CONSOLE APP THAT NEEDS TO BE RESOLVED. Until then, we use this workaround.
8282
+ setTimeout(() => {
8283
+ this.setComboBoxDescriptor();
8284
+ this.#overrideOverlaySettings();
8285
+ });
8286
+
8281
8287
  // Set up observers - order matters here since renderItems can clear innerHTML
8282
8288
  observeAttributes(this, this.renderItems.bind(this), {
8283
8289
  includeAttrs: ['data'],
@@ -13444,10 +13450,6 @@ const multiSelectComboBoxMixin = (superclass) =>
13444
13450
 
13445
13451
  this.setGetValidity();
13446
13452
 
13447
- this.setComboBoxDescriptor();
13448
-
13449
- this.#overrideOverlaySettings();
13450
-
13451
13453
  this.#handleCustomValues();
13452
13454
 
13453
13455
  this.renderItems();
@@ -13460,6 +13462,14 @@ const multiSelectComboBoxMixin = (superclass) =>
13460
13462
  // tries to override it, causing us to lose the user set placeholder.
13461
13463
  forwardAttrs$1(this, this.baseElement, { includeAttrs: ['placeholder'] });
13462
13464
 
13465
+ // This is a workaround for a problem we have in Console App, where in ScreenBuilder - the inputElement is not ready when trying to
13466
+ // set the component's descriptor and override the overlay settings.
13467
+ // THIS IS A PROBLEM WITH THE CONSOLE APP THAT NEEDS TO BE RESOLVED. Until then, we use this workaround.
13468
+ setTimeout(() => {
13469
+ this.setComboBoxDescriptor();
13470
+ this.#overrideOverlaySettings();
13471
+ });
13472
+
13463
13473
  this.setDefaultValues();
13464
13474
 
13465
13475
  this.baseElement.addEventListener('selected-items-changed', () => {