cps-ui-kit 0.98.0 → 0.99.0

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.
@@ -1951,11 +1951,14 @@ class BaseTreeDropdownComponent {
1951
1951
  registerOnTouched(fn) {
1952
1952
  this.onTouched = fn;
1953
1953
  }
1954
- writeValue(value) {
1954
+ writeValue(value, internal = false) {
1955
1955
  this.value = value;
1956
+ if (!internal && value !== null) {
1957
+ this.treeSelection = this._valueToTreeSelection(this.value);
1958
+ }
1956
1959
  }
1957
1960
  updateValue(value) {
1958
- this.writeValue(value);
1961
+ this.writeValue(value, true);
1959
1962
  this.onChange(value);
1960
1963
  this.valueChanged.emit(value);
1961
1964
  }