Skip to content
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

fix(range): reset the page on refine #4760

Merged
merged 1 commit into from
May 21, 2021
Merged

fix(range): reset the page on refine #4760

merged 1 commit into from
May 21, 2021

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented May 21, 2021

Summary

when in #4446 the insights middleware was introduced, range was refactored from helper.addNumericRefinement to state.addNumericRefinement. The helper method resets the page and sets the state, while the state method does not do that. Therefore we need to manually reset the page.

Result

  1. Go to the story
  2. set the page to non-zero
  3. refine the range slider

A similar test can be done for range input

fixes #4759

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c775ff3:

Sandbox Source
InstantSearch.js Configuration

@Haroenv Haroenv merged commit 24e3b34 into master May 21, 2021
@Haroenv Haroenv deleted the fix/range-page branch May 21, 2021 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refining via a range slider can "strand" the user on an empty page of results
2 participants