cant delete the root node

pull/1/head
yann300 8 years ago
parent b23039319b
commit 6d0ca0a471
  1. 3
      src/app/file-explorer.js

@ -153,6 +153,9 @@ function fileExplorer (appAPI, files) {
}
function hover (event) {
var path = this.querySelector('label').dataset.path
if (path === self.files.type) return // can't delete the root node
if (event.type === 'mouseout') {
var exitedTo = event.toElement || event.relatedTarget
if (this.contains(exitedTo)) return

Loading…
Cancel
Save