Commit a487914dcba3c92296d58d0d312e278f64f8c51d
1 parent
eb433493
UI: Entity autocomplete error handling
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -235,7 +235,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit |
235 | 235 | }, |
236 | 236 | () => { |
237 | 237 | this.modelValue = null; |
238 | - this.selectEntityFormGroup.get('entity').patchValue(null, {emitEvent: false}); | |
238 | + this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false}); | |
239 | 239 | if (value !== null) { |
240 | 240 | this.propagateChange(this.modelValue); |
241 | 241 | } |
... | ... | @@ -250,7 +250,7 @@ export class EntityAutocompleteComponent implements ControlValueAccessor, OnInit |
250 | 250 | }, |
251 | 251 | () => { |
252 | 252 | this.modelValue = null; |
253 | - this.selectEntityFormGroup.get('entity').patchValue(null, {emitEvent: false}); | |
253 | + this.selectEntityFormGroup.get('entity').patchValue('', {emitEvent: false}); | |
254 | 254 | if (value !== null) { |
255 | 255 | this.propagateChange(this.modelValue); |
256 | 256 | } | ... | ... |