Problem/Motivation
I am just trying out the range slider with exposed forms and I was super confused when I wasn't seeing the slider. While toggling settings, I turned off the exposed form in a block setting, and lo, the slider appears. Turning the setting back on (as is my preference for this project), the sliders disappear.
To be clear, when using BEF / facets_exposed_filter, range slider widget, if the exposed form is in a block, it does not work. I see the expected markup, but I am not seeing the JavaScript load.
I was surprised I didn't find an issue about this. Is it possible it's just me?
Steps to reproduce
I am on the latest stable of Facets (3.0.7) and BEF (7.1.3).
Create a facet exposed filter, check Range exposed widget. In Exposed form choose Better Exposed Filters, and set the facet to Exposed Facet Range Widget. Leave Exposed form in block: no.
Checkout the view on the front-end, hopefully the slider renders, does for me.
Now go back and edit the view, this time, Exposed form in block: yes.
Checkout the view, min / max fields are visible, the markup for the slider is there, but the library does not load and the slider is not visible.
Proposed resolution
I haven't done more digging to see if the problem is in how Facets decides to attach the library, of if it is just failing to attach when in the block. I also haven't tried forcing the library to be attached to see if the problem is isolated to the library loading or if there is more going on.
Comments