v2 rangeSliders broken with undefined values
See original GitHub issueDo you want to request a feature or report a bug? bug
Bug: What is the current behavior?
When there is a rangeSlider
and the specified attributeName
is undefined/null in the results, it will incorrectly return “No results”.
Example: https://jsfiddle.net/timkelty/fLxzc27h/
- Click the “Current Designs” refinementList facet.
- it will show “no results”, but should not (there are 90).
- If you remove the rangeSlider widget, it will work properly
It would seem it has something to do with how the numericRefinements
are being set.
I’m logging the search state and seeing something like this:
Since the filtered results are null/undefined, they get incorrectly filtered out, even though I’m not touching the rangeSlider
.
What is the version you are using? Always use the latest one before opening a bug issue.
This bug seems to have been introduced in 2.0.0.beta.2. If I use 2.0.0.beta.1, it doesn’t occur. Here’s the same jsFiddle with 2.0.0.beta.1, working: https://jsfiddle.net/timkelty/1g4m8m7q/
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Confirmed fixed with 2.0.0-beta.5. Thanks @iam4x!
Yep, sorry meant to mention it occurs in beta 2 — 4