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

Commit 747c6ac

Browse files
committed
fix(input): fix label inputs with specified types
closes #993
1 parent f71eb32 commit 747c6ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/input/input.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ function inputTextareaDirective($mdUtil, $window, $compile, $animate) {
216216
containerCtrl.setFocused(true);
217217
})
218218
.on('blur', function(e) {
219+
if (e.target && e.target.validity) {
220+
containerCtrl.setHasValue(e.target.validity.badInput);
221+
}
219222
containerCtrl.setFocused(false);
220223
});
221224

0 commit comments

Comments
 (0)