optimistex / ngx-select-ex

Angular based replacement for select boxes
https://optimistex.github.io/ngx-select-ex/
MIT License
111 stars 42 forks source link

How to determine if the control is touched #171

Closed mamwadei closed 4 years ago

mamwadei commented 5 years ago

I am trying to do some code when the control is touched but it seems not work. How to do that please ?

optimistex commented 5 years ago

@mamwadei Make an example on stackblitz. I'll check and fix

mamwadei commented 5 years ago

I am trying to make validation when the control is touched but not working while it works fine with the controls in the same form also dirty works only when I select one option and then clear it and not working if I type anything for search

optimistex commented 5 years ago

@mamwadei Please, use https://stackblitz.com/ to reproduce and show the bug.

I will help much enough to understand faster and as result fix it faster.

Thanks.

guntram commented 4 years ago

ng-touched is set after something was selected: https://stackblitz.com/edit/angular-7-template-driven-form-validation-nhzoet

optimistex commented 4 years ago

@guntram @mamwadei Seems it works fine: https://stackblitz.com/edit/angular-7-issues-171?file=app/app.component.ts