@ascentgl/ads-ui 21.63.0 → 21.63.1

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.
@@ -4509,7 +4509,7 @@ class AdsSearchDropdownComponent extends AbstractDropdownComponent {
4509
4509
  }
4510
4510
  this.loading.set(this.canEmitValue(value));
4511
4511
  }), debounce((value) => {
4512
- return this.canEmitValue(value) && value ? timer(500) : of({});
4512
+ return this.canEmitValue(value) && value ? timer(200) : of({});
4513
4513
  }))
4514
4514
  .subscribe((value) => {
4515
4515
  if (this.canEmitValue(value)) {
@@ -4627,8 +4627,10 @@ class AdsSearchDropdownComponent extends AbstractDropdownComponent {
4627
4627
  /**
4628
4628
  * only emit event if value is a string, and we can emit empty values, or it is not empty
4629
4629
  * NOTE: it disallows to emit explicitly selected "REAL" values
4630
+ * Trim the value to check if it's not just whitespace
4630
4631
  */
4631
- return !this.staticOptions && typeof value == 'string' && (this.emitEmptyValues || !!value);
4632
+ const trimmedValue = typeof value === 'string' ? value.trim() : '';
4633
+ return !this.staticOptions && typeof value == 'string' && (this.emitEmptyValues || !!trimmedValue);
4632
4634
  }
4633
4635
  /** @ignore */
4634
4636
  setControlValueFromString(displayedValue) {