Improve kv-map component disable state handling
This commit is contained in:
parent
359723b05c
commit
096b2944d0
@ -117,6 +117,11 @@ export class KeyValMapComponent extends PageComponent implements ControlValueAcc
|
||||
this.valueChangeSubscription = this.kvListFormGroup.valueChanges.subscribe(() => {
|
||||
this.updateModel();
|
||||
});
|
||||
if (this.disabled) {
|
||||
this.kvListFormGroup.disable({emitEvent: false});
|
||||
} else {
|
||||
this.kvListFormGroup.enable({emitEvent: false});
|
||||
}
|
||||
}
|
||||
|
||||
public removeKeyVal(index: number) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user