File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -718,6 +718,7 @@ angularWidget('input', function(inputElement){
718
718
// We have to use .getAttribute, since jQuery tries to be smart and use the
719
719
// type property. Trouble is some browser change unknown to text.
720
720
type = inputElement [ 0 ] . getAttribute ( 'type' ) || 'text' ,
721
+ typeForAngular = inputElement [ 0 ] . getAttribute ( 'ng:type' ) || type ,
721
722
TypeController ,
722
723
modelScope = this ,
723
724
patternMatch , widget ,
@@ -747,9 +748,11 @@ angularWidget('input', function(inputElement){
747
748
}
748
749
749
750
type = lowercase ( type ) ;
751
+ typeForAngular = lowercase ( typeForAngular ) ;
752
+
750
753
TypeController = ( loadFromScope
751
754
? ( assertArgFn ( this . $eval ( loadFromScope [ 1 ] ) , loadFromScope [ 1 ] ) ) . $unboundFn
752
- : angularInputType ( type ) ) || noop ;
755
+ : angularInputType ( typeForAngular ) ) || noop ;
753
756
754
757
if ( ! HTML5_INPUTS_TYPES [ type ] ) {
755
758
try {
You can’t perform that action at this time.
0 commit comments