mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
more feedback
This commit is contained in:
parent
4f803d0aa6
commit
1817b6326d
@ -38,6 +38,7 @@ nopaque.Forms.init = function() {
|
|||||||
for (let selectElement of form.querySelectorAll('select')) {
|
for (let selectElement of form.querySelectorAll('select')) {
|
||||||
if (selectElement.value === "") {
|
if (selectElement.value === "") {
|
||||||
parentElement = selectElement.closest(".input-field");
|
parentElement = selectElement.closest(".input-field");
|
||||||
|
parentElement.querySelector(".select-dropdown").classList.add("invalid");
|
||||||
for (let helperTextElement of parentElement.querySelectorAll(".helper-text")) {
|
for (let helperTextElement of parentElement.querySelectorAll(".helper-text")) {
|
||||||
helperTextElement.remove();
|
helperTextElement.remove();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user