Skip to content
Permalink
Browse files

fix input type=number

  • Loading branch information...
Alexander Farkas authored and patrickkettner committed Nov 27, 2015
1 parent 8d51691 commit 695fd5ef3cad5b867785d5cff471d52a49aa82a7
Showing with 2 additions and 2 deletions.
  1. +2 −2 feature-detects/inputtypes.js
@@ -52,7 +52,7 @@ define(['Modernizr', 'inputElem', 'docElement'], function(Modernizr, inputElem,

Modernizr.inputtypes = (function(props) {
var len = props.length;
var smile = ':)';
var smile = '1)';
var inputElemType;
var defaultView;
var bool;
@@ -91,7 +91,7 @@ define(['Modernizr', 'inputElem', 'docElement'], function(Modernizr, inputElem,
// Interestingly, opera fails the earlier test, so it doesn't
// even make it here.

} else if (/^(url|email|number)$/.test(inputElemType)) {
} else if (/^(url|email)$/.test(inputElemType)) {
// Real url and email support comes with prebaked validation.
bool = inputElem.checkValidity && inputElem.checkValidity() === false;

0 comments on commit 695fd5e

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.