- Issue created by @socalerich
- Status changed to Postponed: needs info
7 months ago 11:24pm 10 April 2024 - πΊπΈUnited States smustgrave
Could you provide steps for reproducing this?
- Status changed to Closed: outdated
7 months ago 2:31pm 19 April 2024 - πΊπΈUnited States mlncn Minneapolis, MN, USA
This is still an issue, at least when used with the latest Facets 3.x
- Configure facets within Views as documented in https://project.pages.drupalcode.org/facets/exposed_filters/
- In Better Exposed Filters settings on the view, under Exposed Filter Settings, open Advanced filter options and enable Make filter options collapsible ("Puts the filter options in a collapsible details element.")
- Visit the view and filter by another facet so one set to be in a Details element has no results.
- Note that the facet label is still there as the summary for the details element, but nothing is inside.
- Change the Exposed Filter Settings option to not make filter options collapsible.
- Reload the view and see that now the facet label is gone, as expected.
- Status changed to Active
24 days ago 5:02am 23 October 2024 - πΊπΈUnited States mlncn Minneapolis, MN, USA
Thanks, i realized that after posting and upgraded, and it is still the case on 7.0.2 at least.
- πΊπΈUnited States mlncn Minneapolis, MN, USA
Configurable Views Filter Block shows Better Exposed Filters facets-sourced Details elements (label, no options) even when not selected in the block if that is helpful for pointing me at where to try to fix this. Thanks!
- πΊπΈUnited States mlncn Minneapolis, MN, USA
Nothing like writing ones own Better Exposed Filter plugin - https://www.drupal.org/project/bef_links_filter β - to get a better sense of how this all works. Implemented a workaround in π Prevent collapsible fieldset from showing when facet is empty Active but the fix here should be to put the wrapping of facet into a details element on line 254 of better_exposed_filters/src/Plugin/better_exposed_filters/filter/FilterWidgetBase.php in a
if (!empty($form[$field_id])) { β¦ }
block, unless that does not work for all better_exposed_filter plugins?