vue-instantsearch
vue-instantsearch copied to clipboard
Items given to the slot in ais-refinement-list aren't enough to have a mutable query
Bug 🐞
What is the current behavior?
we expose the searchForItemsQuery and the searchForItems function, but the query won't be changed if the function is called
Make a sandbox with the current behavior
https://codesandbox.io/s/409jv23vq9
<ais-refinement-list attribute="brand" searchable>
<template slot-scope="{ searchForItems, searchForItemsQuery }">
<input @input="searchForItems($event.target.value);" />
<pre>{{JSON.stringify(searchForItemsQuery)}}</pre>
</template>
</ais-refinement-list>
What is the expected behavior?
query to be synced with the query just done with searchForItems
Does this happen only in specific situations?
Happens if you use the default slot
What is the proposed solution?
Modify searchForItems to do the setting of the item, like the searchForFacetValues internal value
What is the version you are using?
2.0.0