Wire up filtering logic for the timeline

This commit is contained in:
Jorge Manrubia
2025-10-02 10:12:43 +02:00
parent e046227ebc
commit 1c0a01c17a
3 changed files with 39 additions and 33 deletions
@@ -91,6 +91,7 @@ export default class extends Controller {
#addHiddenFields() {
this.#selectedValues().forEach(value => {
const [field] = this.hiddenFieldTemplateTarget.content.cloneNode(true).children
field.removeAttribute("id")
field.value = value
this.element.appendChild(field)
})