NumericMenu does not properly support zero values for single direction options #6156
Open
1 task done
Labels
triage
Issues to be categorized by the team
π 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: