Collapsible details element not hidden if "Hide filter, if no options" is selected.

Created on 7 August 2023, about 1 year ago
Updated 19 April 2024, 5 months ago

I'm not sure if this is a BEF issue or just a Drupal core issue or maybe even specific to my custom theme, but I have an exposed filter block setup to show in my left sidebar for a view that is doing a site search. The first exposed filter displays checkboxes to filter by content type and the second exposed filter are checkboxes to sort by a taxonomy called "Topic".

In my BEF settings for each exposed filter I have the following settings: "Show only used items", "Filter items based on filtered result set", "Hide filter, if no options", and "Make filter options collapsible". The search itself works as intended, but if the search results in there not being any content types to choose from or Topics to choose from, the collapsible detail element still shows, but it is empty. I would think that if there are no results which would provide any options to choose form the entire element would be hidden, or at least that is the behavior that I am looking for and what I thought the "Hide filter, if no options" setting would do. I would like to not show an empty details element, but hide the whole thing if empty. Is this a bug or is it working as intended? If this isn't a bug, is there a way to make this happen?

Here is what I get if I search for something with no results:

πŸ› Bug report
Status

Closed: outdated

Version

6.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States SoCalErich

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

Comments & Activities

Production build 0.71.5 2024