See #783 - validity should have no bearing on marking something as empty or not. Already fixed in v4.

This commit is contained in:
Kevin Ross 2015-12-13 19:51:57 -06:00
parent 8bec58172c
commit f019b3f3d5

View File

@ -181,7 +181,7 @@
var $formGroup = $input.closest(".form-group");
var isValid = (typeof $input[0].checkValidity === "undefined" || $input[0].checkValidity());
if ($input.val() === "" && isValid) {
if ($input.val() === "") {
$formGroup.addClass("is-empty");
}
else {