Browse Source

Bugfix/fix gf-symbol-autocomplete validation

pull/2094/head
Arghya Ghosh 2 years ago
parent
commit
7d79297c8f
  1. 4
      libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts

4
libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts

@ -132,7 +132,9 @@ export class SymbolAutocompleteComponent
public ngDoCheck() {
if (this.ngControl) {
this.validateRequired();
this.validateSelection();
if (this.control.touched) {
this.validateSelection();
}
this.errorState = this.ngControl.invalid && this.ngControl.touched;
this.stateChanges.next();
}

Loading…
Cancel
Save