Search and Top Navigation
#3662 closed feature (notabug)
Opened December 12, 2008 01:45PM UTC
Closed January 04, 2009 01:20PM UTC
Last modified October 11, 2012 09:15PM UTC
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.
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.