@cuby-ui/core 0.0.115 → 0.0.116

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.
@@ -1938,7 +1938,8 @@ class CuiSelectComponent {
1938
1938
  }
1939
1939
  writeValue(value) {
1940
1940
  this.value = value;
1941
- this.selectedOption = value;
1941
+ // TODO: Непонятно, зачем нужно в construction вторая часть выражения
1942
+ this.selectedOption = this.options.find(option => option.value === value) ?? value;
1942
1943
  this.changeDetectorRef.markForCheck();
1943
1944
  }
1944
1945
  registerOnChange(fn) {