Skip to content

Commit

Permalink
Core: fix validation for input type="date" (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyomitch committed Nov 18, 2020
1 parent b9c793c commit 3b798c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -1214,7 +1214,7 @@ $.extend( $.validator, {

// Exception: the jquery validate 'range' method
// does not test for the html5 'range' type
rules[ method ] = true;
rules[ type === "date" ? "dateISO" : method ] = true;
}
},

Expand Down

0 comments on commit 3b798c2

Please sign in to comment.