Commit 6d0ca0a4 authored by yann300's avatar yann300

cant delete the root node

parent b2303931
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment