algolia / instantsearch

⚑️ Libraries for building performant and instant search experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.

Home Page:https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Go to hierarchicalmenu storybook page in default mode: https://instantsearchjs.netlify.app/stories/js/?path=/story/refinements-hierarchicalmenu--default
  2. Click on Cameras & Camcorders
  3. Click on Camcorder Accessories
  4. Click on Action Camcorder Chargers
  5. 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