- Issue created by @pixelwhip
- 🇺🇸United States pixelwhip
I've tested this merge request on a view that had single value and multi-value filters, with no Ajax, core Ajax and Ajax with Views Ajax History. It resolved the issues for me.
- Status changed to Needs review
almost 2 years ago 6:56am 2 March 2023 - 🇺🇸United States COBadger
In my testing of this patch, clicking on the "x" for one of the filters caused the page to reload and the other filter values were lost in the reload.
In my use case the view is added to the page in the page template via lazy views.
- 🇺🇦Ukraine khiminrm
Tested the fixes from the MR. They didn't work for me. The page was just reloaded.
I've found that for multiple value filter the search arguments can have such structure:
?geography_type[region]=region&geography_type[country]=country
So I've added such lines:// Remove keyed element. url.searchParams.delete(`${selector}[${value}]`);
It helped to fix the remove links I tested.
Attaching the patch. - 🇺🇸United States attheshow
It looks like neither of the previous patches are applying cleanly to version 2.0.0-alpha3 that was just released this week.
- 🇧🇪Belgium leanderjcc Ghent
Patch from #8 applied and solved the issue for us on a view without AJAX (2.0.0-alpha3).
- 🇺🇸United States pixelwhip
The original merge request has been updated to include the latest changes from #8 it also reintroduces support for multi-value filters that are formatted as
?filtername[]=foo&filtername[]=bar
. This was removed in patch #6. It seems multi-value filters can have different formats in the url search params. - 🇺🇦Ukraine khiminrm
When there are multiple exposed forms from the different views on one page this
$('.views-exposed-form input[type="submit"]:nth-child(1)').trigger('click');
doesn't work.
We need to use some additional attributes by which we can find correct exposed form and submit it. - 🇺🇦Ukraine khiminrm
I've noticed similar bug described there https://www.drupal.org/project/views_filters_summary/issues/3378822 🐛 Alter means of testing if a view is ajax-enabled Needs review . I had
destination
parameter in URL and the page was reload on clicking links in the filters summary. So I've updated javascript and added some more specific selectors for the submit buttons: - 🇱🇧Lebanon christina_abboud
Hello,
I had the same issue and I created this patch to fix it
- Assigned to mably
- Status changed to Fixed
3 months ago 9:08am 5 September 2024 - 🇫🇷France mably
Should be fixed in 3.0.x-dev branch.
Thanks for all you contributions!
- 🇺🇦Ukraine khiminrm
I see that committed fixes don't include fixes to get correct exposed to submit in case when there are multiple exposed form blocks from different views on one page. I mentioned about it in https://www.drupal.org/project/views_filters_summary/issues/3345403#comm... 🐛 Remove link removes all filters Fixed and added some additional code changes to fix it. So in current dev version we potentially can face with the same issue.
- Status changed to Needs work
3 months ago 10:25am 5 September 2024 - 🇺🇦Ukraine khiminrm
@mably thanks!
In our case we're using exposed form block with autocomplete search from one view in header of a site and another exposed form block in sidebar region on the views page (another one view). So there are two different exposed form blocks on one page. I know that there can be rare cases when on one page we can have even multiple exposed forms for the same view e.g. to show some filters above the view's results and other filters in sidebar etc.
- Status changed to Fixed
3 months ago 12:11pm 5 September 2024 - 🇺🇦Ukraine khiminrm
@mably thanks a lot for adding these fixes! sorry I can't re-test it right now. I hope it will work as expected. Thanks again!
- 🇫🇷France mably
You're welcome! Feel free to come back to me if you encounter any issue.
Automatically closed - issue fixed for 2 weeks with no activity.
- Issue was unassigned.