Been pulling my hair out on this one. How do you set an initial value for a refinement list?
Eg. If you have a list of categories, and you want a specific category pre-selected.
I tried using the
helper and was able to set a category and the results reflected that. What wasn’t reflected though was a tick in the checkbox in that refinement list.
So I went with plan B. I set a timeout of a second, then use
this.$refs.category.refine() to ‘click’ the correct category. That works - yay.
But that’s relying on the data being ready in 1 second.
I feel like this is really obvious and I cannot work it out.
I guess I’ll need to create a codepen to show this issue?