Bug Tracker

Modify

Ticket #3759 (closed enhancement: invalid)

Opened 4 years ago

Last modified 3 years ago

autocomplete

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

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

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

Change History

Changed 4 years ago by Songokoussj2

removed little typing error

comment:1 Changed 4 years ago by flesler

  • Cc Songokoussj2 added
  • Owner set to joern
  • Component changed from unfilled to plugin

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.