mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-20 08:40:42 +00:00
Fix problem with findNextSibling()
This commit is contained in:
@@ -391,9 +391,9 @@ if(index === -1) {
|
||||
}
|
||||
}
|
||||
// Go back and look for later siblings of our parent if it has the same parent dom node
|
||||
parent = parent.parentWidget;
|
||||
if(parent && parent.parentWidget && parent.parentWidget.parentDomNode === this.parentDomNode) {
|
||||
index = parent.parentWidget.children.indexOf(parent);
|
||||
var grandParent = parent.parentWidget;
|
||||
if(grandParent && parent.parentDomNode === this.parentDomNode) {
|
||||
index = grandParent.children.indexOf(parent);
|
||||
return parent.findNextSibling(index);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user