auto-complete icon indicating copy to clipboard operation
auto-complete copied to clipboard

Bootstrap 4 beta 1 - Validation form and errors

Open rsaenen opened this issue 8 years ago • 0 comments

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:

  • ng-valid/ng-invalid
  • ng-pristine/ng-dirty

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 ?

rsaenen avatar Oct 14 '17 11:10 rsaenen