Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f07cd9

Browse files
author
bartes
committed
fix for html5 for ie8
1 parent d9b4c78 commit 8f07cd9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/widget/input.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ angularWidget('input', function(inputElement){
718718
// We have to use .getAttribute, since jQuery tries to be smart and use the
719719
// type property. Trouble is some browser change unknown to text.
720720
type = inputElement[0].getAttribute('type') || 'text',
721+
typeForAngular = inputElement[0].getAttribute('ng:type') || type,
721722
TypeController,
722723
modelScope = this,
723724
patternMatch, widget,
@@ -747,9 +748,11 @@ angularWidget('input', function(inputElement){
747748
}
748749

749750
type = lowercase(type);
751+
typeForAngular = lowercase(typeForAngular);
752+
750753
TypeController = (loadFromScope
751754
? (assertArgFn(this.$eval(loadFromScope[1]), loadFromScope[1])).$unboundFn
752-
: angularInputType(type)) || noop;
755+
: angularInputType(typeForAngular)) || noop;
753756

754757
if (!HTML5_INPUTS_TYPES[type]) {
755758
try {

0 commit comments

Comments
 (0)