question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v2 rangeSliders broken with undefined values

See original GitHub issue

Do 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:

screen shot 2017-05-30 at 11 18 34 am

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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
timkeltycommented, Jun 1, 2017

Confirmed fixed with 2.0.0-beta.5. Thanks @iam4x!

1reaction
timkeltycommented, May 31, 2017

That being said, have you tried the latest beta-4? Will check on my side too 😃

Yep, sorry meant to mention it occurs in beta 2 — 4

Read more comments on GitHub >

github_iconTop Results From Across the Web

ionRangeSlider is undefined, unable to update - Stack Overflow
Just few minutes ago, I overwrite the js content of "ion.rangeSlider.js" with ionden and holaaa.. I am back to senses. :).
Read more >
RangeSlider class - material library - Flutter - Dart API docs
A range slider can be used to select from either a continuous or a discrete set of values. The default is to use...
Read more >
Sharcoux/slider: React-Native and React-Native-Web ... - GitHub
This lightweight version of a slider is fully compatible with React-Native and React-Native-Web. It also provides support for Range slider (with 2 thumbs)...
Read more >
Range Slider - OutSystems 11 Documentation
Range Slider gives the end users an option to select a value within a configured range by dragging a slider. - OutSystems 11...
Read more >
How To Create Range Sliders - W3Schools
Learn how to create custom range sliders with CSS and JavaScript. ... <input type="range" min="1" max="100" value="50" class="slider" id="myRange">
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found