-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refining via a range slider can "strand" the user on an empty page of results #4759
Comments
Thanks for writing this issue, it indeed seems like range slider doesn't reset the page as expected when something is refined. The relevant code in connectRange is here: and here: I'm pretty sure this bug did not exist in an older version of InstantSearch, but would need to check |
Still did not find the exact cause, but it was introduced in 9bc6359 / 4.8.0, the last version that does not yet have this bug is 4.7.2 |
It's because in that version, the state is reset instead of the helper, which means the page isn't reset. Making a PR to fix it now |
I checked, and all the other widgets seem to be implemented correctly, just this one was wrong. Thanks for your report! |
Thanks, @Haroenv! |
🐛 Bug description
Some widgets seem to reset the current page if the user refines in such a way that they are no longer looking at a valid page and some do not.
🔍 Bug reproduction
Steps to reproduce the behavior:
Live reproduction:
Above instructions are a live repro, using one of your demos.
💭 Expected behavior
When I am on page X and I refine to a result set that doesn't fill X pages, I should be taken back to some valid page of the results.
Note that the behaviour described does not happen if you use a widget other than the range slider:
Additional context
This was reported to me regarding our own instantsearch.js-based app, but the reproduction steps I used above are on your own demo to illustrate that the problem does not come from our own implementation.
The text was updated successfully, but these errors were encountered: