Closed kuzeofficial closed 2 years ago
Hi @kuzeofficial , the input is not cleared because the getter used in the custom search box does not take into account the updated query in the state. For that to happen, you can simply update your query getter method to:
get() {
return this.state?.query || '';
},
Hi @dhayab thanks so much, get value from state work for me
Feature ⚡️
What is your use case for such a feature?
Hello , I have the following code for a custom SearchBox to debounce it as recommended here
This is the code :
I have implemented the attributeName to pass it in the case of the component where I have the currentRefinement like this
This works perfect only that when the refine method is executed the input is not cleared, I assumed it was because it was a custom input and not with the searchBox component as it comes by default, I have implemented it that way and it did not work either, then I saw that the vue documentation for this widget does not mention anything about the clearsQuery method as it does for React and Javascript.
What is your proposal
What is the version you are using?
v4.4.2