Skip to main content

Search and Top Navigation

#7961 closed bug (duplicate)

Opened December 19, 2011 10:04PM UTC

Closed February 26, 2014 02:53PM UTC

Clicking on one UI widget prevents the default click of other UI widgets

Reported by: mlmorg Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.mouse Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

I specifically tested this with the autocomplete and draggable UI widgets. Clicking on a draggable element prevents the default click action of the autocomplete element. For example:

http://jsfiddle.net/x9RSb/

If you type "ja" in the autocomplete, the menu displays. If you then click on the draggable element, the autocomplete menu doesn't hide (the default action). If you click anywhere else on the page, the autocomplete menu will hide as predicted.

If you remove the event.preventDefault() line (line 99) of jQuery UI Mouse within the _mouseDown function, the bug is fixed; however, this commit:

https://github.com/jquery/jquery-ui/commit/a829697d0c9083438bde3a2e47964c29bfbc9417

seems to show that this line is essential.

Attachments (0)
Change History (3)

Changed February 27, 2012 04:21PM UTC by jzaefferer comment:1

status: newopen

Reproducable.

Preventing the default shouldn't have any effect on propagation.

Changed October 11, 2012 02:49PM UTC by scottgonzalez comment:2

milestone: 1.9.02.0.0

Changed February 26, 2014 02:53PM UTC by scottgonzalez comment:3

resolution: → duplicate
status: openclosed

Duplicate of #6642.