@mediusinc/mng-commons 2.0.0-rc.2-d8b4bafc → 2.0.0-rc.4
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/components/form/dropdown/dropdown.component.mjs +5 -2
- package/fesm2015/mediusinc-mng-commons.mjs +4 -1
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +4 -1
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9581,7 +9581,10 @@ class MngDropdownComponent {
|
|
|
9581
9581
|
}
|
|
9582
9582
|
}
|
|
9583
9583
|
writeValue(obj) {
|
|
9584
|
-
|
|
9584
|
+
// this check is required because angular in some cases writes null value
|
|
9585
|
+
// before value accessor is initialized
|
|
9586
|
+
// if form control value is of primitive type (ex: enums) then write value is not called (we think)
|
|
9587
|
+
if (!this.itemsValuePropertyInit && obj === null && !this.isValueAccessorInitialized()) {
|
|
9585
9588
|
return;
|
|
9586
9589
|
}
|
|
9587
9590
|
this.dropdownFormControl.setValue(obj, { emitEvent: false });
|