Opened 7 years ago

Closed 7 years ago

#14905 closed bug (fixed)

Draggable does not correctly blur when handle is clicked

Reported by: dherman Owned by:
Priority: minor Milestone: 1.12.0
Component: ui.draggable Version: 1.11.3
Keywords: Cc:
Blocked by: Blocking:

Description

When clicking on a handle on a draggable item, the active element is not correctly blurred if the click occurred on a descendent element due to a mismatch in two implementation of "did a click occur on this handle"

https://github.com/jquery/jquery-ui/blob/2775253b5118f00f4cd669ce618a9da59b98e783/ui/widgets/draggable.js#L148-L149

https://github.com/jquery/jquery-ui/blob/075421d6d965c66055e47cde477f0ce2e23f1755/ui/draggable.js#L322-L324

The implementation in _getHandle is the correct one since the other one does not take into account whether or not the click occurred on a descendent element of the handle.

Change History (2)

comment:1 Changed 7 years ago by Scott González

Status: newopen

Related to #12472.

comment:2 Changed 7 years ago by Scott González

Milestone: none1.12.0
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.