Browse Source

Merge pull request #5305 from ArtemDzhereleiko/bug-fix/add-attribute/boolean

[3.3.2] UI: Fixed impossible to save new boolean attribute
pull/5334/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
4e59f4a888
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui-ngx/src/app/shared/components/value-input.component.ts

3
ui-ngx/src/app/shared/components/value-input.component.ts

@ -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…
Cancel
Save