fix(input): use lowercase method to account for undefined type

This commit is contained in:
Jeff Cross
2014-08-22 00:35:35 -07:00
parent 8ec3efd967
commit 456026eff1
+1 -1
View File
@@ -478,7 +478,7 @@ function addNativeHtml5Validators(ctrl, validatorName, badFlags, ignoreFlags, va
function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
var validity = element.prop(VALIDITY_STATE_PROPERTY);
var placeholder = element[0].placeholder, noevent = {};
var type = element[0].type.toLowerCase();
var type = lowercase(element[0].type);
ctrl.$$validityState = validity;
// In composition mode, users are still inputing intermediate text buffer,