Skip to content

Commit

Permalink
fix(input): fix invalid animation for input.
Browse files Browse the repository at this point in the history
At the moment the animation will stuck if there is no `md-auto-hide` class or the class isn't `md-input-invalid`.
That's because we not trigger the callback if we finish the animation.

Fixes angular#6822
  • Loading branch information
devversion committed Jan 27, 2016
1 parent 34e0278 commit f80bf63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/input/input.js
Expand Up @@ -599,6 +599,8 @@ function mdInputInvalidMessagesAnimation($q, $animateCss) {

if (className == "md-input-invalid" && messages.hasClass('md-auto-hide')) {
showInputMessages(element, $animateCss, $q).finally(done);
} else {
done();
}
}

Expand Down

0 comments on commit f80bf63

Please sign in to comment.