From e655d5b188a7350e6ee302bf6a1454ea11ac93c2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 4 Oct 2022 12:34:26 +0200 Subject: [PATCH] Remove useless `id` attribute. Prefer to use `data-value` directly. --- .../multiple_checked_select_component.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/multiple_checked_select_component/multiple_checked_select_component.html.haml b/app/components/multiple_checked_select_component/multiple_checked_select_component.html.haml index 780672edd3..0984f1c3cd 100644 --- a/app/components/multiple_checked_select_component/multiple_checked_select_component.html.haml +++ b/app/components/multiple_checked_select_component/multiple_checked_select_component.html.haml @@ -11,6 +11,6 @@ - classes = @selected.include?(option[1]) ? "selected" : "" %div.menu_item{ class: classes, "data-multiple-checked-select-target": "option", "data-value": option[1], "data-label": option[0] } %span.check - %span.name{id: option[1]} + %span.name = option[0] %div{style: "display: none;", "data-multiple-checked-select-target": "inputs"}