Hierarchicalmenu: Amount of results displayed per root category is wrong when navigating to level 3
hereischris opened this issue Β· comments
π Current behavior
When using the hierarchicalmenu widget and navigating to a level 3 category from a particular root category, the amount of results which is displayed next to the category name of the root category is wrong.
It picks up the number of the results of the second level category.
This does not happen when navigating to level 2.
It even happens in Algolias own storybook (link attached below).
π Steps to reproduce
- Go to hierarchicalmenu storybook page in default mode: https://instantsearchjs.netlify.app/stories/js/?path=/story/refinements-hierarchicalmenu--default
- Click on Cameras & Camcorders
- Click on Camcorder Accessories
- Click on Action Camcorder Chargers
- See the number of results next to Cameras & Camcorders change to 173
Live reproduction
https://instantsearchjs.netlify.app/stories/js/?path=/story/refinements-hierarchicalmenu--default
π Expected behavior
The number should remain stable. (1369 in our example case)
Package version
instantsearch 7.2.0
Operating system
Windows 10 Pro
Browser
Google Chrome 117
Code of Conduct
- I agree to follow this project's Code of Conduct