I have a custom angular reactive form
with ng-select
in it with other components. While validating the form I added the below code
private validateCustForm() {
this.validation.touchFormControls(this.appointmentForm);
if (this.appointmentForm.invalid) {
return false;
}
return true;
}
to show the validation message when click on the submit button. It is working with all the form elements except for the custom ng-select element
Is there any way to make the custom ng-select element get touched programmatically after I click on the submit button?