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

Commit 456026e

Browse files
committed
fix(input): use lowercase method to account for undefined type
1 parent 8ec3efd commit 456026e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ function addNativeHtml5Validators(ctrl, validatorName, badFlags, ignoreFlags, va
478478
function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
479479
var validity = element.prop(VALIDITY_STATE_PROPERTY);
480480
var placeholder = element[0].placeholder, noevent = {};
481-
var type = element[0].type.toLowerCase();
481+
var type = lowercase(element[0].type);
482482
ctrl.$$validityState = validity;
483483

484484
// In composition mode, users are still inputing intermediate text buffer,

0 commit comments

Comments
 (0)