Skip to content
New issue

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

Autocomplete using Controls always selects first suggestion #66

Closed
2 of 9 tasks
zchlm opened this issue May 22, 2018 · 2 comments
Closed
2 of 9 tasks

Autocomplete using Controls always selects first suggestion #66

zchlm opened this issue May 22, 2018 · 2 comments

Comments

@zchlm
Copy link

zchlm commented May 22, 2018

I'm submitting a ...

  • bug report
  • feature request
  • support request

What is the current behavior?

Using Controls the first suggestion is always returned on autocomplete

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

In the example - https://kazanexpress.github.io/vue-simple-suggest/
Search -> arrow down to select a suggest (not the first) -> Ctrl/Shift Enter to autocomplete. The first suggestion will be returned.

What is the expected behavior?

The correct suggestion returned.

How are you importing Vue-simple-suggest?

  • ESNext (original code, single-file .vue component, css included) (import VueSimpleSuggest from 'vue-simple-suggest/lib')
  • ES6 (import VueSimpleSuggest from 'vue-simple-suggest')
  • ES7 and above (import VueSimpleSuggest from 'vue-simple-suggest/dist/es7')
  • Bundled version (import VueSimpleSuggest from 'vue-simple-suggest')
  • CommonJS (const VueSimpleSuggest = require('vue-simple-suggest'))
  • UMD Component (<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest"></script>)

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Vue.js Version: 2.5.16
  • Vue-simple-suggest version: 1.7.1
  • Browser: [Chrome 66]
  • Language: [ES6/7]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
@Raiondesu
Copy link
Contributor

Hello @Jabui.
I'm afraid that you're using it wrong. In your case only Enter needs to be pressed, without modifier keys (select action). Please, read the docs carefully.
The autocomplete key combination is for quickly selecting the first element without the need to do anything else.

I'll close the issue for now.
If you'll have further suggestions - please, write them here. :)

@zchlm
Copy link
Author

zchlm commented May 22, 2018

Thanks @Raiondesu, my bad! 😓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants