Opened 11 years ago

Closed 11 years ago

Last modified 7 years ago

#3662 closed feature (notabug)

Cancel event bubbling from datepicker

Reported by: leemhenson Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:

Description

Patch attached which adds support for a cancelBubbling option, as described in this post:

http://groups.google.com/group/jquery-ui/browse_thread/thread/dad394c24354f756

Essentially it allows the user to stop onclick/onchange events escaping the datepicker, as the rebuild of the datepicker html that occurs before the bubbling means that the event.target points at a node which is no longer in the dom.

Attachments (1)

datepicker.patch (8.9 KB) - added by leemhenson 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by leemhenson

Attachment: datepicker.patch added

comment:1 Changed 11 years ago by leemhenson

I think this is now the wrong approach to solve my problem. Since the w3c spec says the path to doc root is calculated and fixed at the point at which the event is raised, it is reasonable for the datepicker to do what it's doing and cause the situation detailed in my post. The other framework in play (javascriptmvc) has been updated to handle disconnected trees of nodes.

comment:2 Changed 11 years ago by caphun

Resolution: invalid
Status: newclosed

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

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.