Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
How to reproduce (may help to create simpletest):
* Have a view with facets facetA and facetB, and a facet selection facetA=x so facetB is empty
* Configure the facet widgets as dropdowns
* Go to view?facetA=x (and facetB is empty)
* remove the facet-filter (using ajax)
Expected: shows the facet-dropdown
Experienced: facet is shown as links because the dropdown js is not attached on inital page load, neither on ajax.
Proposed resolution
Attach the dropdown js on initial pageload
Remaining tasks
Do it.
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | facets-3025534-2-Initially-empty-dropdown-facet-not-dropdownified.patch | 1.79 KB | geek-merlin |
Comments
Comment #2
geek-merlinVery simple patch flying in that fixes the issue for me.
Comment #3
geek-merlinI manually tested both code paths, with and without empty-text setting. Esp: Empty-text is still shown when needed.
Comment #4
anruetherThe problem didn't show up again with the patch applied. Therefore setting RTBC.
Comment #5
rbosscher CreditAttribution: rbosscher as a volunteer commentedI can also confirm this patch works, hope this gets committed.
Comment #7
borisson_