Is there a way to dragStart(e)
a component that is different from e.target
?
#1032
Labels
question
Further information is requested
Description
I have a toolbar from where I want to drag in new components. On some issues it is recommended to use
dragStart(e)
for newly created components, wheree
is the mousedown event.However, in my case the component that I want to drag hasn't been created yet, when the user clicks the mouse.
I have to create the component on the fly, when the mouse button is down. Hence, the
target
of the mousedown evente
won't be the target that I'd like to be dragged.How would I do something like this?
The text was updated successfully, but these errors were encountered: