better behavior when deleting last item

pull/255/head
azivner 2017-12-14 22:53:25 +07:00
parent 2e11494cac
commit e1159c472d
1 changed files with 5 additions and 0 deletions

@ -66,6 +66,11 @@ const treeChanges = (function() {
}
let next = node.getNextSibling();
if (!next) {
next = node.getPrevSibling();
}
if (!next) {
next = node.getParent();
}