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:
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.
Reproducable.
Preventing the default shouldn't have any effect on propagation.