@smartbit4all/ng-client 3.3.151 → 3.3.152
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.
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +3 -3
- package/fesm2015/smartbit4all-ng-client.mjs +2 -2
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +2 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.152.tgz +0 -0
- package/smartbit4all-ng-client-3.3.151.tgz +0 -0
|
@@ -5487,7 +5487,7 @@ class SmartformwidgetComponent {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
if (this.widgetInstance.type === SmartFormWidgetType.TEXT_FIELD &&
|
|
5489
5489
|
this.widgetInstance.selection) {
|
|
5490
|
-
this.filteredOptions = this.onValueChange.pipe(
|
|
5490
|
+
this.filteredOptions = this.onValueChange.pipe(startWith(''), map((value) => this._filter(value || '')), takeUntil(this._destroy$));
|
|
5491
5491
|
}
|
|
5492
5492
|
if (this.widgetInstance.type === SmartFormWidgetType.YOUTUBE_PLAYER) {
|
|
5493
5493
|
let videoId = this.parseYoutubeUrl(this.widgetInstance.link);
|
|
@@ -5500,7 +5500,7 @@ class SmartformwidgetComponent {
|
|
|
5500
5500
|
let formControls = Object.keys(this.form.controls).filter((key) => key === this.widgetInstance.key || key.startsWith(`${this.widgetInstance.key}.`));
|
|
5501
5501
|
formControls.map((key) => {
|
|
5502
5502
|
this.form.controls[key].valueChanges
|
|
5503
|
-
.pipe(takeUntil(this._destroy$)
|
|
5503
|
+
.pipe(distinctUntilChanged(), takeUntil(this._destroy$))
|
|
5504
5504
|
.subscribe((value) => {
|
|
5505
5505
|
const valueChange = {
|
|
5506
5506
|
key,
|