Merge pull request #5305 from ArtemDzhereleiko/bug-fix/add-attribute/boolean
[3.3.2] UI: Fixed impossible to save new boolean attribute
This commit is contained in:
commit
4e59f4a888
@ -124,8 +124,9 @@ export class ValueInputComponent implements OnInit, ControlValueAccessor {
|
|||||||
onValueTypeChanged() {
|
onValueTypeChanged() {
|
||||||
if (this.valueType === ValueType.BOOLEAN) {
|
if (this.valueType === ValueType.BOOLEAN) {
|
||||||
this.modelValue = false;
|
this.modelValue = false;
|
||||||
} if (this.valueType === ValueType.JSON) {
|
} else if (this.valueType === ValueType.JSON) {
|
||||||
this.modelValue = {};
|
this.modelValue = {};
|
||||||
|
this.inputForm.form.get('value').patchValue({});
|
||||||
} else {
|
} else {
|
||||||
this.modelValue = null;
|
this.modelValue = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user