diff --git a/source/components/form/form.mjs b/source/components/form/form.mjs index 464f8b1154faa0287f11b98a93259e18ad768a41..adc86a3edaa05a4eb6f5cff3781ed68e8f2b2898 100644 --- a/source/components/form/form.mjs +++ b/source/components/form/form.mjs @@ -176,15 +176,15 @@ function initEventHandler() { let elementID = element.id; - if (id === "") { + if (elementID === "") { elementID = element.getAttribute("name"); } - if (id === "") { + if (elementID === "") { elementID = element.getAttribute("data-monster-attributes"); } - if (id === "") { + if (elementID === "") { elementID = element.innerText.substring(0, 20); }