From b79b7cbcf5a81301b183544bf07743789f5cf8bc Mon Sep 17 00:00:00 2001 From: imperosol Date: Wed, 6 May 2026 22:45:43 +0200 Subject: [PATCH] fix: `this.$refs.basketManagementForm.getElementById is not a function` --- eboutic/static/bundled/eboutic/eboutic-index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/eboutic/static/bundled/eboutic/eboutic-index.ts b/eboutic/static/bundled/eboutic/eboutic-index.ts index e345d936..43080a58 100644 --- a/eboutic/static/bundled/eboutic/eboutic-index.ts +++ b/eboutic/static/bundled/eboutic/eboutic-index.ts @@ -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"); },