mirror of
https://github.com/ae-utbm/sith.git
synced 2026-05-13 20:48:06 +00:00
fix: this.$refs.basketManagementForm.getElementById is not a function
This commit is contained in:
@@ -28,11 +28,8 @@ document.addEventListener("alpine:init", () => {
|
|||||||
this.basket = [];
|
this.basket = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
document
|
||||||
// It's quite tricky to manually apply attributes to the management part
|
.getElementById("id_form-TOTAL_FORMS")
|
||||||
// of a formset so we dynamically apply it here
|
|
||||||
this.$refs.basketManagementForm
|
|
||||||
.getElementById("#id_form-TOTAL_FORMS")
|
|
||||||
.setAttribute(":value", "basket.length");
|
.setAttribute(":value", "basket.length");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user