- Issue created by @khiminrm
- πΊπ¦Ukraine khiminrm
@smustgrave thanks for the reply!
But I didn't write about jQuery. I've just compared code in bef_sliders.js between 6.0.x and 7.0.x and they look similar, no? but the issue exists and I'm not sure this is somehow related to jQuery.
I've just created some draft code to set form state values for the field in custom validation function for the exposed form and looks like it works. But not sure maybe there can be better solution.
My draft temp solution:
function _my_test_module_exposed_validate(&$form, FormStateInterface $form_state) { $values = $form_state->getValues(); if (!isset($values['price_range'])) { return; } $options_min = $form['price_range']['#attached']['drupalSettings']['better_exposed_filters']['slider_options']['price_range']['min']; $options_max = $form['price_range']['#attached']['drupalSettings']['better_exposed_filters']['slider_options']['price_range']['max']; if ($options_min == $values['price_range']['min'] && $options_max == $values['price_range']['max']) { $values['price_range']['min'] = ''; $values['price_range']['max'] = ''; $form_state->setValues($values); } }
- Status changed to Postponed: needs info
about 1 month ago 4:10pm 7 November 2024 - πΊπΈUnited States smustgrave
The title of the ticket mentions jQuery UI Slider. This was removed in 7.0.x and replaced with ui slider.