From 1817b6326d1ef60b815cf5faed79f97540bf4b8c Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 18 Feb 2020 14:53:35 +0100 Subject: [PATCH] more feedback --- app/static/js/nopaque.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/static/js/nopaque.js b/app/static/js/nopaque.js index 0301a253..bae1d8a4 100644 --- a/app/static/js/nopaque.js +++ b/app/static/js/nopaque.js @@ -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(); }