Skip to content
Snippets Groups Projects
Commit c64e6f10 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Quick fix on filter by name

parent 64e4618b
No related branches found
No related tags found
1 merge request!82Bug/standard public database entrepreneur list
......@@ -157,6 +157,8 @@ function addProperFilterToSearchComponents(targetId) {
keyword_submit.addEventListener("click", function() {
keyword_hidden_fields.forEach(hidden_field => {
hidden_field.setAttribute("value", keyword_field.value);
hidden_field.value = keyword_field.value;
let parent_form = hidden_field.closest("sib-form");
parent_form.component.inputChange();
refreshPagination();
......@@ -282,7 +284,7 @@ function addProperFilterToSearchComponents(targetId) {
'hidden-widget[name="more_criterias_hidden"] input[name="country"]'
);
if (year_field_search) {
if (country_field_search) {
country_field_search.addEventListener("input", function() {
country_hidden_fields.forEach(field => {
inputHiddenManagement(field, country_field_search, form);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment