diff --git a/passbook/static/static/passbook/pf.js b/passbook/static/static/passbook/pf.js index 00edd94fd..99f8609cd 100644 --- a/passbook/static/static/passbook/pf.js +++ b/passbook/static/static/passbook/pf.js @@ -49,6 +49,6 @@ document.querySelectorAll("input[name=name]").forEach((input) => { input.addEventListener("input", (e) => { const form = e.target.closest("form"); const slugField = form.querySelector("input[name=slug]"); - slugField.value = convertToSlug(slugField.value); + slugField.value = convertToSlug(e.target.value); }); });