@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.
@@ -5459,7 +5459,7 @@ class SmartformwidgetComponent {
5459
5459
  }
5460
5460
  if (this.widgetInstance.type === SmartFormWidgetType.TEXT_FIELD &&
5461
5461
  this.widgetInstance.selection) {
5462
- this.filteredOptions = this.onValueChange.pipe(takeUntil(this._destroy$)).pipe(startWith(''), map((value) => this._filter(value || '')));
5462
+ this.filteredOptions = this.onValueChange.pipe(startWith(''), map((value) => this._filter(value || '')), takeUntil(this._destroy$));
5463
5463
  }
5464
5464
  if (this.widgetInstance.type === SmartFormWidgetType.YOUTUBE_PLAYER) {
5465
5465
  let videoId = this.parseYoutubeUrl(this.widgetInstance.link);
@@ -5472,7 +5472,7 @@ class SmartformwidgetComponent {
5472
5472
  let formControls = Object.keys(this.form.controls).filter((key) => key === this.widgetInstance.key || key.startsWith(`${this.widgetInstance.key}.`));
5473
5473
  formControls.map((key) => {
5474
5474
  this.form.controls[key].valueChanges
5475
- .pipe(takeUntil(this._destroy$), distinctUntilChanged())
5475
+ .pipe(distinctUntilChanged(), takeUntil(this._destroy$))
5476
5476
  .subscribe((value) => {
5477
5477
  const valueChange = {
5478
5478
  key,