Closed RobAu closed 10 years ago
I don't think multiple DragSources on a single component are supported, are they? Do you mean DropTargets?
They are :) And this is very useful too. I have list with many items, I want to be able to drag the title, and also a field of a listitem. I attach the DragSource to the listcontainer, with different selectors to select either the title, of the field.
I am not sure if multiple DropTargets make sense though.
DragSources are now identified by the behaviorId, so now multiple DragSources on a single component are allowed. I'm not sure this helps you in your tests, but please create a new ticket with a quickstart if you think this issue can still be improved.
When adding multiple DragSources to a component, it is not very easy to determine which one you want to test. If they would be enhanced to have an "id" or "name" member, it is easier to retrieve the correct behavior when writing a test.