Opened 9 years ago

Last modified 9 years ago

#5757 closed enhancement

Autocomplete combobox issues — at Version 1

Reported by: Jörn Zaefferer Owned by:
Priority: minor Milestone: 1.8.3
Component: ui.autocomplete Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Jörn Zaefferer)

From http://forum.jquery.com/topic/autocomplete-combobox-from-documentation-bugs:

The autocomplete combobox has the following bugs:

   1. submits forms when you select an item
   2. does not take into account the initially selected option
   3. you cannot set the value of the combobox programatically

I solved these issues and the code I added will work for jQuery ui 1.8.

Note: I also have a 'set_empty' call that will only set the combobx if it is empty.  I was using this for starting with a value if one had not been previously set.  Feel free to rip it out if you don't want/need it.

Initializing the input with the value of the select is a no-brainer. Need to look at the others. The provided implementation would need to be refactored to use the set-method in the select-event.

In Chrome 5, enter a charakter and backspace: The resulting menu gets way too wide.

Change History (1)

comment:1 Changed 9 years ago by Jörn Zaefferer

Description: modified (diff)
Note: See TracTickets for help on using tickets.