Skip to content

How to set two attributes for a single RangeInput #6020

Discussion options

You must be logged in to vote

This is currently not possible, but what you can do is:

  1. fork connectRange
  2. add a new parameters minAttr maxAttr
  3. change the relevant code to use those attributes instead of only one (mainly here: https://github.com/algolia/instantsearch/blob/master/packages/instantsearch.js/src/connectors/range/connectRange.ts#L183-L184)

Here's a quite old sandbox that shows this idea implemented in the previous version of React InstantSearch: https://codesandbox.io/s/kwklo3rz63

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by AbdelrahmanAhmed605
Comment options

You must be logged in to vote
1 reply
@Haroenv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants