I made a customized
connectRefinementList, I can input the search text in the search box, then it will return filtered facets, but after I selected one facet value, the facet list will be re-rendered without using the search text to filter the facet values.
I found that the facet filter is calling the
searchForItems; after the facet selection, it calls the
refine method to do a search for data. It’s impossible for me to pass the current search text into the
I tried to call
searchForItems after the
refine call, but that doesn’t work, I guess it’s because the call order and response order are not guaranteed .
My component is similar to the
Brand facet filer on this demo, just kept the search text after selection.
Is there a way to achieve this? Thanks