ca-components 1.4.63 → 1.4.65
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.
|
@@ -31674,7 +31674,7 @@ class CaInputDropdownTestComponent {
|
|
|
31674
31674
|
set options(values) {
|
|
31675
31675
|
if (values)
|
|
31676
31676
|
this._options = [...values];
|
|
31677
|
-
console.log(
|
|
31677
|
+
console.log('update with optins', values, this.firstWriteValue);
|
|
31678
31678
|
if (this.firstWriteValue) {
|
|
31679
31679
|
this.writeValueToFormControl(this.firstWriteValue);
|
|
31680
31680
|
}
|
|
@@ -31741,8 +31741,8 @@ class CaInputDropdownTestComponent {
|
|
|
31741
31741
|
return this.superControl.control;
|
|
31742
31742
|
}
|
|
31743
31743
|
writeValue(value) {
|
|
31744
|
-
|
|
31745
|
-
|
|
31744
|
+
if (value)
|
|
31745
|
+
this.firstWriteValue = value;
|
|
31746
31746
|
this.writeValueToFormControl(value);
|
|
31747
31747
|
}
|
|
31748
31748
|
writeValueToFormControl(value) {
|
|
@@ -31751,7 +31751,7 @@ class CaInputDropdownTestComponent {
|
|
|
31751
31751
|
: this._options;
|
|
31752
31752
|
let findOption = findInOptions.find((option) => option[this.optionValue] == value);
|
|
31753
31753
|
let optionNotFound = false;
|
|
31754
|
-
if (!findOption && value) {
|
|
31754
|
+
if (!findOption && value && findInOptions.length) {
|
|
31755
31755
|
findOption = {
|
|
31756
31756
|
[this.optionValue]: this.firstWriteValue,
|
|
31757
31757
|
[this.label]: this.firstWriteValue,
|