Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(input): fix label inputs with specified types
Browse files Browse the repository at this point in the history
closes #993
  • Loading branch information
rschmukler committed Jan 13, 2015
1 parent f71eb32 commit 747c6ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ function inputTextareaDirective($mdUtil, $window, $compile, $animate) {
containerCtrl.setFocused(true);
})
.on('blur', function(e) {
if (e.target && e.target.validity) {
containerCtrl.setHasValue(e.target.validity.badInput);
}
containerCtrl.setFocused(false);
});

Expand Down

0 comments on commit 747c6ac

Please sign in to comment.