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.
- package/esm2020/lib/base_components/base-tree-dropdown.component.mjs +6 -3
- package/fesm2015/cps-ui-kit.mjs +5 -2
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +5 -2
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/lib/base_components/base-tree-dropdown.component.d.ts +1 -1
- package/package.json +1 -1
package/fesm2020/cps-ui-kit.mjs
CHANGED
|
@@ -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
|
}
|