Browse Source

UI: Entity autocomplete error handling

pull/2663/head
Igor Kulikov 7 years ago
parent
commit
a487914dcb
  1. 4
      ui-ngx/src/app/shared/components/entity/entity-autocomplete.component.ts

4
ui-ngx/src/app/shared/components/entity/entity-autocomplete.component.ts

@ -235,7 +235,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit
},
() => {
this.modelValue = null;
this.selectEntityFormGroup.get('entity').patchValue(null, {emitEvent: false});
this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false});
if (value !== null) {
this.propagateChange(this.modelValue);
}
@ -250,7 +250,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit
},
() => {
this.modelValue = null;
this.selectEntityFormGroup.get('entity').patchValue(null, {emitEvent: false});
this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false});
if (value !== null) {
this.propagateChange(this.modelValue);
}

Loading…
Cancel
Save