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() {
|
||||
if (this.valueType === ValueType.BOOLEAN) {
|
||||
this.modelValue = false;
|
||||
} if (this.valueType === ValueType.JSON) {
|
||||
} else if (this.valueType === ValueType.JSON) {
|
||||
this.modelValue = {};
|
||||
this.inputForm.form.get('value').patchValue({});
|
||||
} else {
|
||||
this.modelValue = null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user