mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-15 06:08:57 +03:00
See #783 - validity should have no bearing on marking something as empty or not. Already fixed in v4.
This commit is contained in:
parent
ba1ab80698
commit
e00ed9491b
|
@ -181,7 +181,7 @@
|
||||||
var $formGroup = $input.closest(".form-group");
|
var $formGroup = $input.closest(".form-group");
|
||||||
var isValid = (typeof $input[0].checkValidity === "undefined" || $input[0].checkValidity());
|
var isValid = (typeof $input[0].checkValidity === "undefined" || $input[0].checkValidity());
|
||||||
|
|
||||||
if ($input.val() === "" && isValid) {
|
if ($input.val() === "") {
|
||||||
$formGroup.addClass("is-empty");
|
$formGroup.addClass("is-empty");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user