mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
better behavior when deleting last item
This commit is contained in:
parent
2e11494cac
commit
e1159c472d
@ -66,6 +66,11 @@ const treeChanges = (function() {
|
||||
}
|
||||
|
||||
let next = node.getNextSibling();
|
||||
|
||||
if (!next) {
|
||||
next = node.getPrevSibling();
|
||||
}
|
||||
|
||||
if (!next) {
|
||||
next = node.getParent();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user