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
From what I can tell, when NumericMenu options have only one range option and either start or end with 0, the URL routing value is ignored. However, when both start and end are 0 β equating to = 0 β the URL will get updated correctly. Positive and negative non-zero numbers work as expected.
Example failing option: { label: '<= 0', end: 0}
π Steps to reproduce
Select rating option of a non-zero >/<= value
Updated URL contains rating filter selection
Select rating >/<= 0
Updated URL does not contain rating filter selection
π Current behavior
From what I can tell, when NumericMenu options have only one range option and either
start
orend
with0
, the URL routing value is ignored. However, when bothstart
andend
are0
β equating to= 0
β the URL will get updated correctly. Positive and negative non-zero numbers work as expected.Example failing option:
{ label: '<= 0', end: 0}
π Steps to reproduce
Live reproduction
https://codesandbox.io/p/sandbox/instantsearch-numeric-menu-zero-test-vx32wy
π Expected behavior
The URL should get updated with the zero-based value, like
0:
or:0
, depending on the option selection and configuration.Example URL query string:
?instant_search[numericMenu][rating]=:0
Package version
algoliasearch 4.23.3, instantsearch 4.67.0
Operating system
No response
Browser
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: