fix services settings on modal open

This commit is contained in:
BlasenhauerJ 2022-12-03 16:10:38 +01:00
parent ba9c16a5d7
commit 4346322f74
1 changed files with 2 additions and 2 deletions

View File

@ -238,8 +238,8 @@ class ServiceModal {
inpt.tagName === "INPUT" &&
inpt.getAttribute("type") === "checkbox"
) {
inpt.checked = defaultVal === "yes" ? true : false;
inpt.setAttribute("value", defaultVal);
inpt.checked = value === "yes" ? true : false;
inpt.setAttribute("value", value);
}
//for select
if (inpt.tagName === "SELECT") {