UI: Entity autocomplete error handling
This commit is contained in:
parent
eb4334937c
commit
a487914dcb
@ -235,7 +235,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit
|
|||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
this.modelValue = null;
|
this.modelValue = null;
|
||||||
this.selectEntityFormGroup.get('entity').patchValue(null, {emitEvent: false});
|
this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false});
|
||||||
if (value !== null) {
|
if (value !== null) {
|
||||||
this.propagateChange(this.modelValue);
|
this.propagateChange(this.modelValue);
|
||||||
}
|
}
|
||||||
@ -250,7 +250,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit
|
|||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
this.modelValue = null;
|
this.modelValue = null;
|
||||||
this.selectEntityFormGroup.get('entity').patchValue(null, {emitEvent: false});
|
this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false});
|
||||||
if (value !== null) {
|
if (value !== null) {
|
||||||
this.propagateChange(this.modelValue);
|
this.propagateChange(this.modelValue);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user