@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.
@@ -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(takeUntil(this._destroy$)).pipe(startWith(''), map((value) => this._filter(value || '')));
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$), distinctUntilChanged())
5503
+ .pipe(distinctUntilChanged(), takeUntil(this._destroy$))
5504
5504
  .subscribe((value) => {
5505
5505
  const valueChange = {
5506
5506
  key,