Merge pull request #1375 from ae-utbm/fix-eboutic-js

fix: `this.$refs.basketManagementForm.getElementById is not a function`
This commit is contained in:
thomas girod
2026-05-06 23:22:06 +02:00
committed by GitHub
@@ -28,11 +28,8 @@ document.addEventListener("alpine:init", () => {
this.basket = [];
}
}
// It's quite tricky to manually apply attributes to the management part
// of a formset so we dynamically apply it here
this.$refs.basketManagementForm
.getElementById("#id_form-TOTAL_FORMS")
document
.getElementById("id_form-TOTAL_FORMS")
.setAttribute(":value", "basket.length");
},