I am displaying a list of 10 items using ais-menu in the angular instantsearch framework. I am changing the color of the selected filter by using the ais-Menu-item–selected class that gets applied to the parent of the selected element and applying my css to the label.
However, ais-Menu-item–selected does not display for all the selected values. A lot of times, i select a filters value, the api hit also contains that search value but ais-Menu-item–selected does not get added to the label’s parent. Why is this happening?
How else can i get the selected ais-menu selected filter value and apply my own css to it in the angular instantsearch framework?