valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 585 forks source link

How to clear Validate when using with FormControlName #986

Open DoanVanThuong opened 5 years ago

DoanVanThuong commented 5 years ago

Hi Guys,When i using ng-select in Reactive Form. My formControlName has: ng2SelectEmptyError: {valid: false}. I do not want it cause that formControl is option not required. Help me please !

`asyncValidator: null dirty: (...) disabled: (...) enabled: (...) errors: ng2SelectEmptyError: valid: false proto: Object proto: Object invalid: true