UI: Remove highlight for valid fields (#4669)

This commit is contained in:
d11n 2023-02-20 19:23:09 +01:00 committed by GitHub
parent bbbaacc350
commit cff46f2d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
$(element.form).find(`[data-valmsg-for="${element.id}"]`).addClass('invalid-feedback');
},
unhighlight: function (element) {
$(element).addClass("is-valid").removeClass("is-invalid");
$(element).removeClass("is-invalid");
$(element.form).find(`[data-valmsg-for="${element.id}"]`).removeClass('invalid-feedback');
}
});