inveniosoftware / react-searchkit

React component library for interacting with a REST API.
https://inveniosoftware.github.io/react-searchkit/
MIT License
78 stars 40 forks source link

Nested filters with the same value #259

Closed psaiz closed 5 months ago

psaiz commented 7 months ago

Package version (if known): 2.2.4

Describe the bug

A clear and concise description of what the bug is.

I have a category filter that looks like the attachment. There is a nested field, with values like 'Environment', 'Software', 'News', and then each one might have different children values. Note that the children value of 'Validation' appears in two parents ('Environment' and 'Software'). Clicking on any of the 'Validation' children selects the first one ('Environment'). There is no way of selecting 'Software::Validation'.

Steps to Reproduce

  1. Have a nested field, and the same value on two children.
  2. Check if the second one can be selected

Expected behavior

The user should be able to select the first or the second one

Screenshots (if applicable)

Screenshot 2023-11-24 at 16 19 17

Additional context