Unable to unselect a multi select exposed filter in ajax view

Created on 4 April 2022, about 3 years ago
Updated 10 September 2023, over 1 year ago

Problem/Motivation

When using a multi select exposed filter in an ajax view, it is not possible to un-select the given filter in case the filter parameter is present in the url.

Steps to reproduce

1. Install standard profile
2. Modify the content view /admin/structure/views/view/content
- change content type filter to "Allow multiple selections"
- change the view to ajax mode "Use AJAX: Yes"
3. Visit /admin/content?type[]=page
- Unselect "Basic page" (ctrl+click), then click filter

Problem: the "Basic page" is re-selected.
Expected behavior: the "Basic page" is not selected.

Proposed resolution

#2646332: AJAX view with exposed filters & default values does not respect user's empty choice β†’ seems like a similar issue.
The empty choice must be forced on the view instead of skipping.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡­πŸ‡ΊHungary pasqualle πŸ‡­πŸ‡Ί Budapest

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States mikemccaffrey

    Unfortunately, the patch in #14 did not work for me, and there are not enough details in this ticket or the code comments for me to understand what the solution is supposed to be and exactly how it is supposed to work, so I am unable to easily figure out what is not working.

Production build 0.71.5 2024