Search and Top Navigation
#5971 closed bug (notabug)
Opened August 18, 2010 08:12PM UTC
Closed August 18, 2010 08:18PM UTC
Last modified October 11, 2012 09:15PM UTC
When scrollling through autocomplete suggestions using up/down arrow keys, highlighted text is copied to the input element, which may make it appear that a selection has been made
Reported by: | ryounes | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.autocomplete | Version: | 1.8.2 |
Keywords: | autocomplete, scroll, arrow key, selection | Cc: | |
Blocked by: | Blocking: |
Description
This can be tested on the jQuery UI autocomplete demo pages: when scrolling through the list of autocomplete suggestions using up/down arrow keys, the highlighted text is copied to the input element. This does not happen when hovering over a suggestion with the mouse. I have seen it confuse a user into thinking that a selection has been made, although the select event is not actually fired until the user either presses the enter key or clicks on the item with the mouse. I have checked out other autocomplete widgets and have not seen this behavior.
Attachments (0)
Change History (3)
Changed August 18, 2010 08:18PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Changed September 14, 2010 07:25PM UTC by comment:2
A quick note, this behavior can easily be disabled by halting the focus event.
e.g.
jQuery('#element').autocomplete({ focus: function(event, ui) { event.preventDefault(); // or return false; } });
Changed October 11, 2012 09:15PM UTC by comment:3
milestone: | TBD |
---|
Milestone TBD deleted
This is by design. This is exactly how Firefox's location bar work, which is the model that we're following.