Closed twbagustin closed 5 years ago
I am not getting this issue in the codesandbox that you linked. Can you fork the sandbox and define steps for reproduction?
Closing due to inactivity. If you can provide more detailed steps then I can look again.
vue-autosuggest
version: 2.0.4node
version: -npm
(oryarn
) version: -Relevant code or config
First minor bug is here, following codesanbox demo https://codesandbox.io/s/vueautosuggest-api-fetching-57d4e, if there is no "default" section, then
this.sectionConfigs["default"]
will be undefined andUncaught TypeError: Cannot read property 'onSelected' of undefined
will raise! Just search any query and hit enter will trigger selected() and raise the error, which points to 2nd bug why is selected raised in the first place if I didn't actually select anythingI currently solve this locally by setting an empty "default" section:
What you did: Playing with the library!
What happened: - Reproduction repository: - Problem description: -
Suggested solution: