@coreui/angular-pro 4.4.3 → 4.4.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.
@@ -8315,7 +8315,7 @@ class MultiSelectService {
8315
8315
  __classPrivateFieldGet(this, _MultiSelectService_destroy$, "f").next(true);
8316
8316
  }
8317
8317
  setSelectionModel(multiple = true, initiallySelectedValues = []) {
8318
- this.selectionModel = new SelectionModel(multiple, initiallySelectedValues);
8318
+ this.selectionModel = new SelectionModel(multiple);
8319
8319
  this.selectionModel.changed.pipe(takeUntil(__classPrivateFieldGet(this, _MultiSelectService_destroy$, "f"))
8320
8320
  // tap( change => {
8321
8321
  // console.log('value selected', this.selectionModel.selected);
@@ -9304,7 +9304,7 @@ class MultiSelectComponent {
9304
9304
  return !!origin;
9305
9305
  }
9306
9306
  ngOnInit() {
9307
- this.multiSelectService.setSelectionModel(this.multiple, __classPrivateFieldGet(this, _MultiSelectComponent_value, "f"));
9307
+ this.multiSelectService.setSelectionModel(this.multiple);
9308
9308
  this.multiSelectService.selectionModel.changed
9309
9309
  .pipe(takeUntil$1(__classPrivateFieldGet(this, _MultiSelectComponent_destroy$, "f")), filter(() => !this.multiple), delay(0), tap(change => {
9310
9310
  if (change.added.length) {
@@ -9340,6 +9340,8 @@ class MultiSelectComponent {
9340
9340
  this.updateNativeSelect();
9341
9341
  }))
9342
9342
  .subscribe();
9343
+ // set initial values
9344
+ this.multiSelectService.selectionModel.select(...__classPrivateFieldGet(this, _MultiSelectComponent_value, "f"));
9343
9345
  this.value$
9344
9346
  .pipe(takeUntil$1(__classPrivateFieldGet(this, _MultiSelectComponent_destroy$, "f")))
9345
9347
  .subscribe(value => {