In my Angular 9 application, I am utilizing Reactive Forms with a Custom Form Control.
I have enclosed my ng-select control within the Custom Form Control.
However, I am facing an issue with validation. Even though I have set the formControl to be required, according to the documentation, the ng-invalid
css class should be automatically applied to ng-select. But with custom form control, this is not working as expected. The css class is not being set, although the wrapper class is. Can you advise if I am overlooking something or if this is related to a library problem?
Feel free to check out the stackblitz example: https://stackblitz.com/edit/angular-rmvttg-ex63ka?file=src/forms-single-select-example.component.html&fbclid=IwAR2robtd_15khTVhmW59lLhn21HOHl_yYTrCWKaPRmfUt1QVvUn3n8V4Vjo