From 58cd2f514a176d5130e52729f1cd386f795b3816 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 2 Jul 2024 17:06:18 -0300 Subject: [PATCH] fix: poder cancelar el modal #16711 --- app/views/posts/attributes/_new_predefined_array.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/attributes/_new_predefined_array.haml b/app/views/posts/attributes/_new_predefined_array.haml index 3b251bcb..80a88098 100644 --- a/app/views/posts/attributes/_new_predefined_array.haml +++ b/app/views/posts/attributes/_new_predefined_array.haml @@ -47,7 +47,7 @@ .form-group.mb-0{ id: "#{id}_body" } -# Eliminamos las tildes para poder buscar independientemente de cómo se escriba - metadata.values.each_pair do |value, key| - .mb-2{ data: { target: 'array.item', 'searchable-value': value.remove_diacritics.downcase, value: value } } + .mb-2{ data: { target: 'array.item', 'searchable-value': value.remove_diacritics.downcase, value: key } } = render 'bootstrap/custom_checkbox', name: name, id: random_id, value: key, checked: metadata.value.include?(key), content: value, data: { action: 'required-checkbox#change', target: 'required-checkbox.checkbox' } - content_for :"#{id}_footer" do