I have the below SearchBox view, but this is causing my autocomplete suggestion does not show any suggestions even though i'm getting the suggestions from the elastic. Any suggestions please.
Thank you joe for looking into this.
If i remove the custom view it renders correctly and is working as expected. Yes the network requests are getting fired and i see the responses from the backend for the suggestions call.
What it looks like you're trying to do is override just the inputbox business logic. Theres also an inputView component prop that allows you to customise just the input view.
Thanks Joe. I'm having hard time in setting the onChange and onSubmit props. do you have any example of how this can be accomplished? when i started using the inputView..i've started getting errors like "TypeError: onChange is not a function". Appreciate your help on this.
getButtonProps is a function which returns all the props required (for example onChange prop) for the button to function. If you want to put some logic in between, such as validate the input before submission, you could use the downshift extensions like this
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.