ngx-sp-infra 6.5.21 → 6.5.22
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.
|
@@ -6492,7 +6492,8 @@ class LibComboboxReworkComponent {
|
|
|
6492
6492
|
// Re-resolve the current value when the list changes
|
|
6493
6493
|
if (this._value)
|
|
6494
6494
|
this.writeValue(this._value);
|
|
6495
|
-
this.searchControl.
|
|
6495
|
+
const search = this.searchControl.value;
|
|
6496
|
+
this.searchControl.setValue(search == '' ? '' : search, { emitEvent: true });
|
|
6496
6497
|
}
|
|
6497
6498
|
// Getter/Setter para o valor
|
|
6498
6499
|
get value() { return this._value; }
|
|
@@ -6578,8 +6579,7 @@ class LibComboboxReworkComponent {
|
|
|
6578
6579
|
}
|
|
6579
6580
|
ngOnInit() {
|
|
6580
6581
|
this.searchControl.valueChanges
|
|
6581
|
-
.pipe(takeUntil(this._destroy$), debounceTime(200))
|
|
6582
|
-
.subscribe((v) => {
|
|
6582
|
+
.pipe(takeUntil(this._destroy$), distinctUntilChanged(), debounceTime(200)).subscribe((v) => {
|
|
6583
6583
|
if (this.innerFilter)
|
|
6584
6584
|
this._search$.next(v ?? "");
|
|
6585
6585
|
else
|
|
@@ -6596,8 +6596,8 @@ class LibComboboxReworkComponent {
|
|
|
6596
6596
|
}
|
|
6597
6597
|
ngOnChanges(changes) {
|
|
6598
6598
|
if (changes['list'] && changes['list'].currentValue) {
|
|
6599
|
-
this.searchControl.
|
|
6600
|
-
this.
|
|
6599
|
+
const search = this.searchControl.value;
|
|
6600
|
+
this.searchControl.setValue(search == '' ? '' : search, { emitEvent: true });
|
|
6601
6601
|
}
|
|
6602
6602
|
}
|
|
6603
6603
|
ngOnDestroy() {
|