ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 123 forks source link

Bootstrap 4 beta 1 - Validation form and errors #294

Open rsaenen opened 6 years ago

rsaenen commented 6 years ago

Hi, In order to validate a form, errors with BS4-beta1 is wrapped with a div.invalid-feedback. Angular adds to input the following classes:

It's easy to display the div.invalid-feedback if the input has class ng-invalid with the selector .ng-invalid ~ .invalid-feedback.

However, autocomplete wraps the input in a div.ngui-auto-complete-wrapper. Do you think it's possible to bind input classes (only ng-invalid to begin) to the div.ngui-auto-complete-wrapper ?