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

Commit 066c049

Browse files
committed
fix(input): use lowercase method to account for undefined type
1 parent 9352bdf commit 066c049

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
@@ -912,7 +912,7 @@ function addNativeHtml5Validators(ctrl, validatorName, badFlags, ignoreFlags, va
912912
function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
913913
var validity = element.prop(VALIDITY_STATE_PROPERTY);
914914
var placeholder = element[0].placeholder, noevent = {};
915-
var type = element[0].type.toLowerCase();
915+
var type = lowercase(element[0].type);
916916
ctrl.$$validityState = validity;
917917

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

0 commit comments

Comments
 (0)