You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
MultiRange items ignore the value 0 in their bounds. In the following fiddle, we would expect the "Free" option to return nothing and not every item: https://jsfiddle.net/ar80rgpc/33/ This also impacts ranges with negative values as start:0 will return items with negative values.
Bug: What is the expected behavior?
To handle the 0 value differently than a missing value.
Bug: What browsers are impacted? Which versions?
all
What is the version you are using? Always use the latest one before opening a bug issue.
react-instantsearch@4.4.1
The text was updated successfully, but these errors were encountered:
This PR adds in connectNumericMenu support for numericRefinement `0`.
There has been complaints about the following not producing a refinement
```jsx
import { NumericMenu } from 'react-instantsearch-dom';
<NumericMenu
attribute="price"
items={[
{ label: '<= 0', start: 0 },
/* ... */
]}
/>
```
fixes#867
Haroenv
pushed a commit
to algolia/instantsearch
that referenced
this issue
Jan 4, 2023
…instantsearch#2882)
This PR adds in connectNumericMenu support for numericRefinement `0`.
There has been complaints about the following not producing a refinement
```jsx
import { NumericMenu } from 'react-instantsearch-dom';
<NumericMenu
attribute="price"
items={[
{ label: '<= 0', start: 0 },
/* ... */
]}
/>
```
fixesalgolia/react-instantsearch#867
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug?
a bug
Bug: What is the current behavior?
MultiRange items ignore the value 0 in their bounds. In the following fiddle, we would expect the "Free" option to return nothing and not every item: https://jsfiddle.net/ar80rgpc/33/ This also impacts ranges with negative values as start:0 will return items with negative values.
Bug: What is the expected behavior?
To handle the 0 value differently than a missing value.
Bug: What browsers are impacted? Which versions?
all
What is the version you are using? Always use the latest one before opening a bug issue.
react-instantsearch@4.4.1
The text was updated successfully, but these errors were encountered: