We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report
What is the current behavior?
Currently, if the source function does not provide the expected type of suggestions to display, it fails without an error or a message.
You can see this behaviour in this fiddle.
What is the expected behavior?
I would expect to have an error or a message so that I can understand the current problem.
The text was updated successfully, but these errors were encountered:
+1. It would be nice to be able to display an error message within the dropdown for queries that fail.
Sorry, something went wrong.
I think to fix that, we need to throw an error in an else after this, but I didn't try it out yet 😄
https://github.com/algolia/autocomplete.js/blob/3dcaced9cb4d5c763c64dc6de203abe5d874d238/src/autocomplete/dataset.js#L98-L111
Throw err on update if suggestions are invalid type
49656bf
Resolves algolia#131
feat: Throw err on update if suggestions are invalid type (#256)
179febf
* Throw err on update if suggestions are invalid type Resolves #131 * Check error type and message in spec
No branches or pull requests
Bug report
What is the current behavior?
Currently, if the source function does not provide the expected type of suggestions to display, it fails without an error or a message.
You can see this behaviour in this fiddle.
What is the expected behavior?
I would expect to have an error or a message so that I can understand the current problem.
The text was updated successfully, but these errors were encountered: