Skip to main content

Search and Top Navigation

#7508 closed enhancement (wontfix)

Opened June 27, 2011 01:43AM UTC

Closed June 27, 2011 02:12PM UTC

Show suggestions on focus?

Reported by: MartinF Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.13
Keywords: Cc:
Blocked by: Blocking:
Description

Hello,

thanks for this great plugin.

Would it be possible to add an option so it will automatically show the suggestions when the input field recieves focus ?

Right now it hides the suggestions when it looses focus (blur), but it does not show it again when focus is back in the input field, so you currently have to delete a character and re-enter it to show the results from before.

Bascially i am suggesting to add an onfocus event to the inputfield that triggers showing the previous suggestions (if any).

Martin :)

Attachments (0)
Change History (1)

Changed June 27, 2011 02:12PM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

This is already trivial to do yourself, adding an option isn't a good idea.

element.focus(function() {
    $( this ).autocomplete( "search" );
});