@morozeckiy/dd-lib 0.7.108 → 0.7.109

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.
@@ -3697,7 +3697,9 @@ class LibSelectComponent extends LibCommonInputTextComponent {
3697
3697
  this.setupFormControl();
3698
3698
  }
3699
3699
  ngOnChanges(changes) {
3700
- if (changes['data']?.firstChange && this.writtenValue) {
3700
+ const firstChange = changes['data']?.firstChange && this.writtenValue;
3701
+ const hasCurrentValue = !changes['data']?.previousValue && changes['data']?.currentValue;
3702
+ if (firstChange || hasCurrentValue) {
3701
3703
  this.writeValue(this.writtenValue);
3702
3704
  }
3703
3705
  }