akserg / ng2-dnd

Angular 2 Drag-and-Drop without dependencies
MIT License
838 stars 251 forks source link

Keep already set dataTransfer "text" data #268

Open maxxgamer opened 6 years ago

maxxgamer commented 6 years ago

It fixes a problem where the drag resets the "text" data on dataTransfer which lead to problems when dragging to an external application.

Now the dataTransfer is only set to '' when nothing else is set yet.