mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
better behavior when deleting last item
This commit is contained in:
@@ -66,6 +66,11 @@ const treeChanges = (function() {
|
||||
}
|
||||
|
||||
let next = node.getNextSibling();
|
||||
|
||||
if (!next) {
|
||||
next = node.getPrevSibling();
|
||||
}
|
||||
|
||||
if (!next) {
|
||||
next = node.getParent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user