 
       e.dataTransfer.effectAllowed = "move"
       e.dataTransfer.setDragImage(dragImage, 0, 0)
-      e.dataTransfer.setData("initialPaths", initialPaths)
+      e.dataTransfer.setData("initialPaths", @dragPaths)
 
       window.requestAnimationFrame ->
         dragImage.remove()

    @editorsToDestroy = []

    @dragEventCounts = new WeakMap
    @rootDragAndDrop = new RootDragAndDrop(this)

    @handleEvents()

      e.stopPropagation()

      entry = header.parentNode
      directoryPath = entry.querySelector('.name')?.dataset.path
      directorySelected = directoryPath? and @dragPaths.includes(directoryPath)

      @dragEventCounts.set(entry, @dragEventCounts.get(entry) - 1)
      entry.classList.remove('selected') if @dragEventCounts.get(entry) is 0 and not directorySelected

  # Handle entry name object dragstart event
  onDragStart: (e) ->
    @dragEventCounts = new WeakMap
    @dragPaths = []
    @selectOnMouseUp = null
    if entry = e.target.closest('.entry')
      e.stopPropagation()
