Bug Tracker

Opened 11 years ago

Closed 10 years ago

#3759 closed enhancement (invalid)

autocomplete

Reported by: Songokoussj2 Owned by: joern
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc: Songokoussj2
Blocked by: Blocking:

Description

It would be great to see autocompletes result list to behave more like a normal html select list resulting in better user experience. Selecting an "option" from the result list should use the mouseup-event instead of the click-event resulting in the possibility to make a mousedown on an "option" moving the mouse to another "option" and selecting the desired "option" using a mouseup. Additionaly it should not be possible to select text from an "option".

In order to prevent the selection of the text mousedown should return false (line 579) and a selectstart-event should be added which should return false too to get the same behavior on IE. Eventually this plugin can be used http://plugins.jquery.com/project/disable_text_select on the list at line 574.

For right selection behavior of an option i copied the code from line 580-584 and pasted this code into the mouseup-event at line 592. I also removed the click-event handler cause it is not needed anymore.

Thanks you for your work Thomas Wanschik

Attachments (1)

jquery.autocomplete.js (19.4 KB) - added by Songokoussj2 11 years ago.
removed little typing error

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Songokoussj2

Attachment: jquery.autocomplete.js added

removed little typing error

comment:1 Changed 11 years ago by flesler

Cc: Songokoussj2 added
Component: unfilledplugin
Owner: set to joern

comment:2 Changed 10 years ago by john

Resolution: invalid
Status: newclosed

Please file plugin bugs with the appropriate author on their bug tracker.

Note: See TracTickets for help on using tickets.