Open mhimi1 opened 4 years ago
interesting, this might be something they have changed across a major version.
It would be useful to show exactly what you suggest to change here: https://codesandbox.io/s/github/algolia/doc-code-samples/tree/master/Vue%20InstantSearch/multi-index-autocomplete
Thanks!
For some reason, I get a 403 error when trying to access the sandbox, but the change I would suggest is moving the input change event out of the inputProps and instead use the @input event directly.
so instead of
:input-props="{ style: 'width: 100%', onInputChange: refine, placeholder: 'Search here…', }"
using:
@input="refine"
I'm having the same issue using onInputChange: refine
, but your solution worked for me @mhimi1 ! Thanks :)
Welcome @biancajemsten. Glad it helped you.
Hi,
The docs show the following example code for vue-autosuggest:
<vue-autosuggest :suggestions="indicesToSuggestions(indices)" @selected="onSelect" :input-props="{ style: 'width: 100%', onInputChange: refine, placeholder: 'Search here…', }"
This does not seem to trigger 'refine'.
@input event does seem to trigger 'refine', as followed: