Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update/remove .has-error after filling form using autocomplete #11

Open
dasblitz opened this issue Sep 16, 2014 · 0 comments
Open

update/remove .has-error after filling form using autocomplete #11

dasblitz opened this issue Sep 16, 2014 · 0 comments

Comments

@dasblitz
Copy link

First of all: tnx for the plugin, it works really nice :) It might as well be me doing something wrong but if I validate the form before any input is filled and then fill the form using autofill the .has-error class stays on all the fields. I've added this to the linkFn to make it work:

scope.$watch(function () {
  return formCtrl.$invalid
}, function (val) {
  if(val === false) {
    toggleClasses(val);
  }
});

Not sure if it's the right way to go though.

paynam added a commit to paynam/angular-bootstrap-show-errors that referenced this issue May 30, 2016
…-validity" event is triggered.

Issue paulyoder#11 in original repository(update/remove .has-error after filling form using autocomplete) paulyoder#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant