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

autoSelect option is not working #92

Open
bzijlema opened this issue Oct 9, 2020 · 0 comments
Open

autoSelect option is not working #92

bzijlema opened this issue Oct 9, 2020 · 0 comments
Assignees
Labels
bug triage Need more info or there is an open discussion tu fully undestand the issue
Milestone

Comments

@bzijlema
Copy link

bzijlema commented Oct 9, 2020

Describe the bug
Disabling the autoSelect option has no effect. The documentation states that autoSelect " Automatically selects selected item on blur event (i.e. using TAB to switch to next field).". This is true, but setting autoSelect to 'false` has the same effect.

To Reproduce
Steps to reproduce the behavior:

  1. Create a text input element:
<input type="text" id="foo" autocomplete="off" data-url="myurl">
  1. Add autocomplete to the input and disable autoSelect:
$('#foo').autoComplete({
    autoSelect: false
});
  1. Start typing until the dropdown opens.

  2. Select an item from the dropdown and press Tab.

Expected behavior
The dropdown closes and the input field should not be filled with the selected autocomplete item.

Desktop:

  • OS: Linux Mint 20
  • Browser Chrome
  • Version 86.0.4240.75
@xcash xcash self-assigned this Nov 12, 2020
@xcash xcash added bug triage Need more info or there is an open discussion tu fully undestand the issue labels Nov 12, 2020
@xcash xcash added this to the 2.4.0 milestone Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Need more info or there is an open discussion tu fully undestand the issue
Projects
None yet
Development

No branches or pull requests

2 participants