more feedback

This commit is contained in:
Patrick Jentsch 2020-02-18 14:53:35 +01:00
parent 4f803d0aa6
commit 1817b6326d

View File

@ -38,6 +38,7 @@ nopaque.Forms.init = function() {
for (let selectElement of form.querySelectorAll('select')) {
if (selectElement.value === "") {
parentElement = selectElement.closest(".input-field");
parentElement.querySelector(".select-dropdown").classList.add("invalid");
for (let helperTextElement of parentElement.querySelectorAll(".helper-text")) {
helperTextElement.remove();
}