{"action":"opened","issue":{"url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/398","labels_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/398/comments","events_url":"https://api.github.com/repos/devbridge/jQuery-Autocomplete/issues/398/events","html_url":"https://github.com/devbridge/jQuery-Autocomplete/issues/398","id":101259703,"number":398,"title":"Triggers select on exact match when more than one suggestion is available","user":{"login":"Rjs37","id":1931638,"avatar_url":"https://avatars.githubusercontent.com/u/1931638?v=3","gravatar_id":"","url":"https://api.github.com/users/Rjs37","html_url":"https://github.com/Rjs37","followers_url":"https://api.github.com/users/Rjs37/followers","following_url":"https://api.github.com/users/Rjs37/following{/other_user}","gists_url":"https://api.github.com/users/Rjs37/gists{/gist_id}","starred_url":"https://api.github.com/users/Rjs37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rjs37/subscriptions","organizations_url":"https://api.github.com/users/Rjs37/orgs","repos_url":"https://api.github.com/users/Rjs37/repos","events_url":"https://api.github.com/users/Rjs37/events{/privacy}","received_events_url":"https://api.github.com/users/Rjs37/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T12:31:20Z","updated_at":"2015-08-16T12:31:20Z","closed_at":null,"body":"I use this for a username search against a very large database and I recently came across this strange quirk. If there's an exact match found, it will trigger the select even if there's more than one suggestion being returned.\r\n\r\nI was able to get around this by setting triggerSelectOnValidInput to false, but really it should be checking for an exact match AND just one result returned before triggering the select.\r\n\r\nFor example, if my username was \"RobertJS\" but you had Robert, Robert2, RobertS all in the database, as soon as you type \"Robert\" all the other suggestions will disappear. When you have tens of thousands of usernames then this situation becomes rather common!"}}