@coreui/angular-pro 4.2.32 → 4.2.33

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.
@@ -8422,17 +8422,17 @@ class MultiSelectOptionComponent {
8422
8422
  ngAfterViewInit() {
8423
8423
  setTimeout(() => {
8424
8424
  this.hasContent = !!this.contentDiv?.nativeElement.childNodes.length;
8425
- if (this.label === undefined) {
8426
- const innerText = this.elementRef.nativeElement.textContent.trim() || this.elementRef.nativeElement.innerText.trim();
8427
- this.label = innerText || this.value?.trim() || '...';
8428
- }
8429
- if (this.value === undefined) {
8430
- this.value = this.label?.trim() || '...';
8431
- }
8432
8425
  if (!this.hasContent) {
8433
8426
  this.changeDetectorRef.markForCheck();
8434
8427
  }
8435
8428
  });
8429
+ if (this.label === undefined) {
8430
+ const innerText = this.elementRef.nativeElement.textContent.trim() || this.elementRef.nativeElement.innerText.trim();
8431
+ this.label = innerText || this.value?.trim() || '...';
8432
+ }
8433
+ if (this.value === undefined) {
8434
+ this.value = this.label?.trim() || '...';
8435
+ }
8436
8436
  }
8437
8437
  /** Get the label for this element which is required by the FocusableOption interface. */
8438
8438
  getLabel() {