-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on ie version 11 #21
Comments
Same with IE10, but the problem is in the browser itself: IE10 and above supports input type number, but doesn't render +/- buttons. |
so, what is the fix to treat those browsers as not supporting the input type number? |
My fast workaround was to apply this pollyfill everytime and hide +/- buttons for webkit browsers like this: input[type=number]::-webkit-inner-spin-button, |
Had the same issue. My fast workaround is to replace |
@jonstipe Any quick and clean solution for this please? |
If this is due to IE's native implementation, messing with it runs the risk of also breaking other browsers with native implementations and future IE versions. Doing browser detection is notoriously unreliable. Not sure this can be fixed. |
one can use Modernzr or jQuery.support |
The issue is indeed on line 12 where the script does a naive check to see if the browser is indeed IE. The issue is that this fails on some versions of IE, I am using a function that does a better job from the testing that I've done (IE 8 and 11). On line 12 of
to
Where function detectIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
// IE 10 or older => return version number
if (msie > 0) {
return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
}
var trident = ua.indexOf('Trident/');
// IE 11 => return version number
if (trident > 0) {
var rv = ua.indexOf('rv:');
return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
}
var edge = ua.indexOf('Edge/');
// IE 12 => return version number
if (edge > 0) {
return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
}
return false;
} Edit: to clarify, this plugin does work for IE 11 (and others), but the condition for applying the polyfill wasn't the best/IE has changed since this was updated. |
It works, but not for dynamically inserted inputs. In which case we need to reassert this polyfill everytime. |
This script block was added in polyfill or just here? |
So, does it work in IE 11? I tried detectIE() and it didn't help. |
|
hi, i tried the polyfill and working great but does not work in internet explorer version 11
The text was updated successfully, but these errors were encountered: