Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Greedy clarification #107

Closed
wants to merge 2 commits into from

2 participants

Dave Stein Scott González
Dave Stein

The description was a little ambiguous. With current documentation, I did not expect parent should have fired console.log in this example: http://jsfiddle.net/pe62d/2/

I was assuming the event bubble was being stopped within the widget. I'm not too sure my wording of "via the callback method" is the greatest either. Let me know what you think

Scott González

I think this wording is confusing as well. It makes it sound like we're explicitly firing the event on the parents. We probably shouldn't mention callback and event as separate things. Just say that the event will bubble up to the parents, and you can check event.target to see which droppable received the draggable element.

Scott González

Landed in 64070f2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  entries/droppable.xml
2  entries/droppable.xml
View
@@ -31,7 +31,7 @@
</option>
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="greedy" type="Boolean" default="false" example-value="true">
- <desc>By default, when an element is dropped on nested droppables, each droppable will receive the element. However, by setting this option to <code>true</code>, any parent droppables will not receive the element.</desc>
+ <desc>By default, when an element is dropped on nested droppables, each droppable will receive the element. However, by setting this option to <code>true</code>, any parent droppables will not receive the element. The <code>drop</code> event will still bubble normally, but the <code>event.target</code> can be checked to see which droppable received the draggable element.</desc>
</option>
<option name="hoverClass" type="String" default="false" example-value='"drop-hover"'>
<desc>If specified, the class will be added to the droppable while an acceptable draggable is being hovered over the droppable.</desc>
Something went wrong with that request. Please try again.