@db-ux/ngx-core-components 3.1.3 → 3.1.4

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.
@@ -2544,7 +2544,10 @@ class DBTooltip {
2544
2544
  if (this._ref()?.nativeElement) {
2545
2545
  // This is a workaround for angular
2546
2546
  delay(() => {
2547
- handleFixedPopover(this._ref()?.nativeElement, parent, this.placement() ?? "bottom");
2547
+ // Due to race conditions we need to check for _ref again
2548
+ if (this._ref()?.nativeElement) {
2549
+ handleFixedPopover(this._ref()?.nativeElement, parent, this.placement() ?? "bottom");
2550
+ }
2548
2551
  }, 1);
2549
2552
  }
2550
2553
  }
@@ -6314,7 +6317,6 @@ class DBSelect {
6314
6317
  this.disabled.set(disabled);
6315
6318
  }
6316
6319
  ngAfterViewInit() {
6317
- this.writeValue(this.value() ?? "");
6318
6320
  if (typeof window !== "undefined") {
6319
6321
  const element = this._ref()?.nativeElement;
6320
6322
  this.enableAttributePassing(element, "db-select");
@@ -6326,6 +6328,8 @@ class DBSelect {
6326
6328
  this._invalidMessageId.set(mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX);
6327
6329
  this._placeholderId.set(mId + DEFAULT_PLACEHOLDER_ID_SUFFIX);
6328
6330
  this._invalidMessage.set(this.invalidMessage() || DEFAULT_INVALID_MESSAGE);
6331
+ // @ts-ignore
6332
+ this.writeValue?.(this.value?.() ?? "");
6329
6333
  }
6330
6334
  }
6331
6335
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DBSelect, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }