You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cuu508 - hello. The draggable binding is a wrapper to the template binding, so it creates a new context based on whatever is passed in. In your fiddle, it just happens that you are passing in the current data ($data), so both $data and $parent will be the same value. I can understand how this would not be less than obvious in this case, but I hope that this helps explain the behavior.
Looks like $parent context variable is incorrect inside elements that use the draggable binding. Example fiddle:
http://jsfiddle.net/pjbWC/5/
This fiddle prints out $data and $parent values for array elements, they turn out to be equal, which I didn't expect.
In source of the binding,
update()
method, there's this line:The issue goes away if I change "data" to something else:
I don't understand this well at all, so not sure if this is correct fix, and what side-effects it may have.
The text was updated successfully, but these errors were encountered: